On Tue, Oct 1, 2019 at 10:36 AM Damien LEFEVRE <lefevre...@gmail.com> wrote: > > Hi, > > I have the following bbappend > > FILESEXTRAPATHS_prepend := "${THISDIR}/files:" > SRC_URI += " \ > file://tegra186_cti_defconfig \ > " > > do_fetch_append(){ > mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig > } > > For this I get an error: > File "autogenerated", line 3 > mv ${WORKDIR}/tegra186_cti_defconfig ${WORKDIR}/defconfig > ^ > SyntaxError: invalid syntax > > Can someone explain why? I get the same in do_fetch_append. Starts working > with do_configure_append but that's too late in case of rebuild.
do_fetch is a Python function, not a shell function. See meta/classes/base.bbclass you can use do_configure_prepend() if you need to do something *before* the actual do_configure. > > Thanks, > -Damien > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto