* do_fetch_append: syntax error
@ 2019-10-01 8:35 Damien LEFEVRE
2019-10-01 9:06 ` Nicolas Dechesne
2019-10-01 9:13 ` Martin Jansa
0 siblings, 2 replies; 4+ messages in thread
From: Damien LEFEVRE @ 2019-10-01 8:35 UTC (permalink / raw)
To: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
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.
Thanks,
-Damien
[-- Attachment #2: Type: text/html, Size: 831 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: do_fetch_append: syntax error
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
1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Dechesne @ 2019-10-01 9:06 UTC (permalink / raw)
To: Damien LEFEVRE; +Cc: Yocto discussion list
On Tue, Oct 1, 2019 at 10:36 AM Damien LEFEVRE <lefevre.da@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: do_fetch_append: syntax error
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
2019-10-01 9:37 ` Damien LEFEVRE
1 sibling, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2019-10-01 9:13 UTC (permalink / raw)
To: Damien LEFEVRE; +Cc: Yocto discussion list
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: do_fetch_append: syntax error
2019-10-01 9:13 ` Martin Jansa
@ 2019-10-01 9:37 ` Damien LEFEVRE
0 siblings, 0 replies; 4+ messages in thread
From: Damien LEFEVRE @ 2019-10-01 9:37 UTC (permalink / raw)
To: Martin Jansa, nicolas.dechesne; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
OK understood!
I'll find another way.
Thanks,
-Damien
On Tue, Oct 1, 2019 at 12:13 PM Martin Jansa <martin.jansa@gmail.com> wrote:
> 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: Type: text/html, Size: 1548 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-01 9:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-10-01 9:37 ` Damien LEFEVRE
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.