From: Martin Jansa <martin.jansa@gmail.com>
To: Damien LEFEVRE <lefevre.da@gmail.com>
Cc: Yocto discussion list <yocto@yoctoproject.org>
Subject: Re: do_fetch_append: syntax error
Date: Tue, 1 Oct 2019 11:13:40 +0200 [thread overview]
Message-ID: <20191001091340.GA1582@jama> (raw)
In-Reply-To: <CA+FhBv9rA12ik5StBmeDAD1b8gLy1Si3S-muQNmBqw824VXPXA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
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@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
next prev parent reply other threads:[~2019-10-01 9:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-01 8:35 do_fetch_append: syntax error Damien LEFEVRE
2019-10-01 9:06 ` Nicolas Dechesne
2019-10-01 9:13 ` Martin Jansa [this message]
2019-10-01 9:37 ` Damien LEFEVRE
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191001091340.GA1582@jama \
--to=martin.jansa@gmail.com \
--cc=lefevre.da@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.