[yocto] do_fetch_append: syntax error

Martin Jansa martin.jansa at gmail.com
Tue Oct 1 02:13:40 PDT 2019


On Tue, Oct 01, 2019 at 11:35:21AM +0300, Damien LEFEVRE 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 python task, you cannot append shell code to it.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191001/d27f28a7/attachment.pgp>


More information about the yocto mailing list