* bbappend extra SRC_URI ignored
@ 2018-06-14 12:16 Damien LEFEVRE
2018-06-14 12:24 ` Robert P. J. Day
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Damien LEFEVRE @ 2018-06-14 12:16 UTC (permalink / raw)
To: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]
HI,
I'm working on meta-tegra layer and I'd like to append a recipe. The
original recipe looks like this:
https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
<https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb>
I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG
DEFAULT from 2 to 3 to get max performance in nvpmodel.conf configuration
file.
```
FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
do_install_append_tegra186() {
install -d ${D}${sysconfdir}
install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
install -m 0644 ${WORKDIR}/nvpmodel.conf ${D}${sysconfdir}/nvpmodel.conf
install -d ${D}${sysconfdir}/init.d
install -m 0644 ${S}/nvpmodel.init ${D}${sysconfdir}/init.d/nvpmodel
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/nvpmodel.service ${D}${systemd_system_unitdir}
}
```
Would you have any idea why the nvpmodel.conf prepend is ignored and the
file never ends up in ${WORKDIR}.
I've made sure the paths are correct. nvpmodel.conf exists and if I put a
typo like nvpmodel.conf_blabla bitbake throws a warning that it cannot find
the file. So I'm sure the file is found but somehow bitbake ignores it.
I'm having this issue with this one single recipe only, none of the others
in my build system so I'm a bit puzzled.
Thanks,
-Damien
[-- Attachment #2: Type: text/html, Size: 2090 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 12:16 bbappend extra SRC_URI ignored Damien LEFEVRE
@ 2018-06-14 12:24 ` Robert P. J. Day
2018-06-14 12:32 ` Damien LEFEVRE
2018-06-14 12:32 ` Maciej Pijanowski
2018-06-14 12:33 ` Martin Jansa
2 siblings, 1 reply; 8+ messages in thread
From: Robert P. J. Day @ 2018-06-14 12:24 UTC (permalink / raw)
To: Damien LEFEVRE; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
On Thu, 14 Jun 2018, Damien LEFEVRE wrote:
> HI,
> I'm working on meta-tegra layer and I'd like to append a recipe. The original recipe looks like
> this:
> https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-t
> ools_28.2.0.bb
>
> I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG DEFAULT from 2 to 3 to
> get max performance in nvpmodel.conf configuration file.
>
> ```
> FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
> SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
why are you using both a prepend and the "+=" operator on the same
line?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca/dokuwiki
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 12:16 bbappend extra SRC_URI ignored Damien LEFEVRE
2018-06-14 12:24 ` Robert P. J. Day
@ 2018-06-14 12:32 ` Maciej Pijanowski
2018-06-14 12:33 ` Martin Jansa
2 siblings, 0 replies; 8+ messages in thread
From: Maciej Pijanowski @ 2018-06-14 12:32 UTC (permalink / raw)
To: Damien LEFEVRE, Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1982 bytes --]
On 14.06.2018 14:16, Damien LEFEVRE wrote:
> HI,
>
> I'm working on meta-tegra layer and I'd like to append a recipe. The
> original recipe looks like this:
> https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
> <https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb>
>
> I've made a tegra-tools_28.2.0.bbappend to change the default
> PM_CONFIG DEFAULT from 2 to 3 to get max performance in nvpmodel.conf
> configuration file.
>
> ```
> FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
> SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
It looks like a common mistake of mixing append / prepend with +=.
I do not know this recipe or machine, but i would try with changing this
line
to: `SRC_URI_tegra186 += "file://nvpmodel.conf "` first
>
> do_install_append_tegra186() {
> install -d ${D}${sysconfdir}
> install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
> install -m 0644 ${WORKDIR}/nvpmodel.conf
> ${D}${sysconfdir}/nvpmodel.conf
> install -d ${D}${sysconfdir}/init.d
> install -m 0644 ${S}/nvpmodel.init ${D}${sysconfdir}/init.d/nvpmodel
> install -d ${D}${systemd_system_unitdir}
> install -m 0644 ${S}/nvpmodel.service ${D}${systemd_system_unitdir}
> }
> ```
> Would you have any idea why the nvpmodel.conf prepend is ignored and
> the file never ends up in ${WORKDIR}.
>
> I've made sure the paths are correct. nvpmodel.conf exists and if I
> put a typo like nvpmodel.conf_blabla bitbake throws a warning that it
> cannot find the file. So I'm sure the file is found but somehow
> bitbake ignores it.
>
> I'm having this issue with this one single recipe only, none of the
> others in my build system so I'm a bit puzzled.
>
> Thanks,
> -Damien
>
>
>
>
--
Maciej Pijanowski
Embedded Systems Engineer
http://3mdeb.com | @3mdeb_com
[-- Attachment #2: Type: text/html, Size: 4025 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 12:24 ` Robert P. J. Day
@ 2018-06-14 12:32 ` Damien LEFEVRE
0 siblings, 0 replies; 8+ messages in thread
From: Damien LEFEVRE @ 2018-06-14 12:32 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 1544 bytes --]
Typo sorry.
I've tried all possible combination
- SRC_URI += "file://nvpmodel.conf"
- SRC_URI_append = " file://nvpmodel.conf"
- SRC_URI_prepend = "file://nvpmodel.conf "
- SRC_URI_append_tegra186 = " file://nvpmodel.conf"
- SRC_URI_prepend_tegra186 = "file://nvpmodel.conf "
-Damien
On Thu, Jun 14, 2018 at 3:24 PM, Robert P. J. Day <rpjday@crashcourse.ca>
wrote:
> On Thu, 14 Jun 2018, Damien LEFEVRE wrote:
>
> > HI,
> > I'm working on meta-tegra layer and I'd like to append a recipe. The
> original recipe looks like
> > this:
> > https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.
> 2/recipes-bsp/tegra-binaries/tegra-t
> > ools_28.2.0.bb
> >
> > I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG
> DEFAULT from 2 to 3 to
> > get max performance in nvpmodel.conf configuration file.
> >
> > ```
> > FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
> > SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
>
> why are you using both a prepend and the "+=" operator on the same
> line?
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day Ottawa, Ontario, CANADA
> http://crashcourse.ca/dokuwiki
>
> Twitter: http://twitter.com/rpjday
> LinkedIn: http://ca.linkedin.com/in/rpjday
> ========================================================================
[-- Attachment #2: Type: text/html, Size: 3286 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 12:16 bbappend extra SRC_URI ignored Damien LEFEVRE
2018-06-14 12:24 ` Robert P. J. Day
2018-06-14 12:32 ` Maciej Pijanowski
@ 2018-06-14 12:33 ` Martin Jansa
2018-06-14 13:22 ` Damien LEFEVRE
2 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2018-06-14 12:33 UTC (permalink / raw)
To: Damien LEFEVRE; +Cc: Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 2050 bytes --]
On Thu, Jun 14, 2018 at 03:16:00PM +0300, Damien LEFEVRE wrote:
> HI,
>
> I'm working on meta-tegra layer and I'd like to append a recipe. The
> original recipe looks like this:
> https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
> <https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb>
>
> I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG
> DEFAULT from 2 to 3 to get max performance in nvpmodel.conf configuration
> file.
>
> ```
> FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
> SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
>
> do_install_append_tegra186() {
> install -d ${D}${sysconfdir}
> install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
> install -m 0644 ${WORKDIR}/nvpmodel.conf ${D}${sysconfdir}/nvpmodel.conf
> install -d ${D}${sysconfdir}/init.d
> install -m 0644 ${S}/nvpmodel.init ${D}${sysconfdir}/init.d/nvpmodel
> install -d ${D}${systemd_system_unitdir}
> install -m 0644 ${S}/nvpmodel.service ${D}${systemd_system_unitdir}
> }
> ```
> Would you have any idea why the nvpmodel.conf prepend is ignored and the
> file never ends up in ${WORKDIR}.
>
> I've made sure the paths are correct. nvpmodel.conf exists and if I put a
> typo like nvpmodel.conf_blabla bitbake throws a warning that it cannot find
> the file. So I'm sure the file is found but somehow bitbake ignores it.
>
> I'm having this issue with this one single recipe only, none of the others
> in my build system so I'm a bit puzzled.
Always use bitbake -e to verify that the file://nvpmodel.conf ends where
you expect it to end (and if it doesn't the history will show you why
not).
>
> Thanks,
> -Damien
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 12:33 ` Martin Jansa
@ 2018-06-14 13:22 ` Damien LEFEVRE
2018-06-14 14:23 ` Martin Jansa
0 siblings, 1 reply; 8+ messages in thread
From: Damien LEFEVRE @ 2018-06-14 13:22 UTC (permalink / raw)
To: Martin Jansa, Yocto discussion list
[-- Attachment #1: Type: text/plain, Size: 5002 bytes --]
Thanks
Here are some interesting parts of bitbake -e. It seems my syntax is
correct
# $FILESEXTRAPATHS [3 operations]
# set? /home/damien/procbox-pyro/sources/poky/meta/conf/bitbake.conf:325
# "__default:"
# set
/home/damien/procbox-pyro/sources/poky/meta/conf/documentation.conf:173
# [doc] "Extends the search path the OpenEmbedded build system uses
when looking for files and patches as it processes recipes and append
files."
# _prepend[tegra186]
/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bbappend:1
#
"/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186:"
# pre-expansion value:
#
"/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186
:__default:"
FILESEXTRAPATHS="
/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186
:__default:"
#
# $SRC_URI [10 operations]
.....
# " file://nvcamera-daemon.init file://nvcamera-daemon.service
file://argus-daemon.init file://argus-daemon.service
file://nvstartup.init file://nvstartup.service "
# _append[tegra186]
/home/damien/procbox-pyro/sources/meta-tegra/recipes-bsp/tegra-binaries/tegra-binaries-28.2.0.inc:19
# " file://tegra186-flash-helper.sh file://nvpmodel.init
file://nvpmodel.service "
# set
/home/damien/procbox-pyro/sources/meta-tegra/recipes-bsp/tegra-binaries/tegra-shared-binaries.inc:8
# ""
# _prepend[tegra186]
/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bbappend:2
# "file://nvpmodel.conf "
# set tegra-binaries-28.2.0.inc:42
[__anon_46__home_damien_procbox_pyro_sources_meta_tegra_recipes_bsp_tegra_binaries_tegra_binaries_28_2_0_inc]
# [md5sum] "22bbd0002db06bb26bf5de2d17cea8eb"
# set tegra-binaries-28.2.0.inc:43
[__anon_46__home_damien_procbox_pyro_sources_meta_tegra_recipes_bsp_tegra_binaries_tegra_binaries_28_2_0_inc]
# [sha256sum]
"62f57b4c03fedde1fe0a1635bd0828b334308eca71bd21f25ae5757f48fb3a76"
# pre-expansion value:
# "file://nvpmodel.conf file://tegra186-flash-helper.sh
file://nvpmodel.init file://nvpmodel.service "
SRC_URI="file://nvpmodel.conf file://tegra186-flash-helper.sh
file://nvpmodel.init file://nvpmodel.service "
Then no other mentions until the do_install
Yet the nvpmodel.conf is never copied to ${WORKDIR} which
is /home/damien/procbox-pyro/build-jetson-tx2/tmp/work/aarch64_tegra186-poky-linux/tegra-tools/28.2.0-r0
in my case.
Could some bitbake options disable this standard behavior?
On Thu, Jun 14, 2018 at 3:33 PM, Martin Jansa <martin.jansa@gmail.com>
wrote:
> On Thu, Jun 14, 2018 at 03:16:00PM +0300, Damien LEFEVRE wrote:
> > HI,
> >
> > I'm working on meta-tegra layer and I'd like to append a recipe. The
> > original recipe looks like this:
> > https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.
> 2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
> > <https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.
> 2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb>
> >
> > I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG
> > DEFAULT from 2 to 3 to get max performance in nvpmodel.conf configuration
> > file.
> >
> > ```
> > FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
> > SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
> >
> > do_install_append_tegra186() {
> > install -d ${D}${sysconfdir}
> > install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
> > install -m 0644 ${WORKDIR}/nvpmodel.conf ${D}${sysconfdir}/nvpmodel.
> conf
> > install -d ${D}${sysconfdir}/init.d
> > install -m 0644 ${S}/nvpmodel.init ${D}${sysconfdir}/init.d/nvpmodel
> > install -d ${D}${systemd_system_unitdir}
> > install -m 0644 ${S}/nvpmodel.service ${D}${systemd_system_unitdir}
> > }
> > ```
> > Would you have any idea why the nvpmodel.conf prepend is ignored and the
> > file never ends up in ${WORKDIR}.
> >
> > I've made sure the paths are correct. nvpmodel.conf exists and if I put a
> > typo like nvpmodel.conf_blabla bitbake throws a warning that it cannot
> find
> > the file. So I'm sure the file is found but somehow bitbake ignores it.
> >
> > I'm having this issue with this one single recipe only, none of the
> others
> > in my build system so I'm a bit puzzled.
>
> Always use bitbake -e to verify that the file://nvpmodel.conf ends where
> you expect it to end (and if it doesn't the history will show you why
> not).
>
> >
> > Thanks,
> > -Damien
>
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
>
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>
[-- Attachment #2: Type: text/html, Size: 7027 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 13:22 ` Damien LEFEVRE
@ 2018-06-14 14:23 ` Martin Jansa
2018-06-15 10:50 ` Damien LEFEVRE
0 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2018-06-14 14:23 UTC (permalink / raw)
To: lefevre.da; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 5682 bytes --]
See ./recipes-bsp/tegra-binaries/tegra-shared-binaries.inc
It's disabling standard do_fetch, do_unpack, do_patch and replacing them
with tegra-binaries:do_unpack tegra-binaries:do_preconfigure which populates
S directory in work-shared
S = "${TMPDIR}/work-shared/L4T-${SOC_FAMILY}-${PV}-${PR}/Linux_for_Tegra"
so basically you need to add it in tegra-binaries recipe (not tegra-tools).
On Thu, Jun 14, 2018 at 3:22 PM Damien LEFEVRE <lefevre.da@gmail.com> wrote:
>
> Thanks
>
> Here are some interesting parts of bitbake -e. It seems my syntax is
> correct
>
>
> # $FILESEXTRAPATHS [3 operations]
> # set? /home/damien/procbox-pyro/sources/poky/meta/conf/bitbake.conf:325
> # "__default:"
> # set
> /home/damien/procbox-pyro/sources/poky/meta/conf/documentation.conf:173
> # [doc] "Extends the search path the OpenEmbedded build system uses
> when looking for files and patches as it processes recipes and append
> files."
> # _prepend[tegra186]
> /home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bbappend:1
> #
> "/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186:"
> # pre-expansion value:
> #
> "/home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186
> :__default:"
> FILESEXTRAPATHS="
> /home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186
> :__default:"
>
> #
> # $SRC_URI [10 operations]
> .....
> # " file://nvcamera-daemon.init file://nvcamera-daemon.service
> file://argus-daemon.init file://argus-daemon.service
> file://nvstartup.init file://nvstartup.service "
> # _append[tegra186]
> /home/damien/procbox-pyro/sources/meta-tegra/recipes-bsp/tegra-binaries/tegra-binaries-28.2.0.inc:19
> # " file://tegra186-flash-helper.sh file://nvpmodel.init
> file://nvpmodel.service "
> # set
> /home/damien/procbox-pyro/sources/meta-tegra/recipes-bsp/tegra-binaries/tegra-shared-binaries.inc:8
> # ""
> # _prepend[tegra186]
> /home/damien/procbox-pyro/sources/meta-procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bbappend:2
> # "file://nvpmodel.conf "
> # set tegra-binaries-28.2.0.inc:42
> [__anon_46__home_damien_procbox_pyro_sources_meta_tegra_recipes_bsp_tegra_binaries_tegra_binaries_28_2_0_inc]
> # [md5sum] "22bbd0002db06bb26bf5de2d17cea8eb"
> # set tegra-binaries-28.2.0.inc:43
> [__anon_46__home_damien_procbox_pyro_sources_meta_tegra_recipes_bsp_tegra_binaries_tegra_binaries_28_2_0_inc]
> # [sha256sum]
> "62f57b4c03fedde1fe0a1635bd0828b334308eca71bd21f25ae5757f48fb3a76"
> # pre-expansion value:
> # "file://nvpmodel.conf file://tegra186-flash-helper.sh
> file://nvpmodel.init file://nvpmodel.service "
> SRC_URI="file://nvpmodel.conf file://tegra186-flash-helper.sh
> file://nvpmodel.init file://nvpmodel.service "
>
> Then no other mentions until the do_install
>
> Yet the nvpmodel.conf is never copied to ${WORKDIR} which
> is /home/damien/procbox-pyro/build-jetson-tx2/tmp/work/aarch64_tegra186-poky-linux/tegra-tools/28.2.0-r0
> in my case.
>
> Could some bitbake options disable this standard behavior?
>
> On Thu, Jun 14, 2018 at 3:33 PM, Martin Jansa <martin.jansa@gmail.com>
> wrote:
>
>> On Thu, Jun 14, 2018 at 03:16:00PM +0300, Damien LEFEVRE wrote:
>> > HI,
>> >
>> > I'm working on meta-tegra layer and I'd like to append a recipe. The
>> > original recipe looks like this:
>> >
>> https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
>> > <
>> https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
>> >
>> >
>> > I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG
>> > DEFAULT from 2 to 3 to get max performance in nvpmodel.conf
>> configuration
>> > file.
>> >
>> > ```
>> > FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
>> > SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
>> >
>> > do_install_append_tegra186() {
>> > install -d ${D}${sysconfdir}
>> > install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
>> > install -m 0644 ${WORKDIR}/nvpmodel.conf
>> ${D}${sysconfdir}/nvpmodel.conf
>> > install -d ${D}${sysconfdir}/init.d
>> > install -m 0644 ${S}/nvpmodel.init ${D}${sysconfdir}/init.d/nvpmodel
>> > install -d ${D}${systemd_system_unitdir}
>> > install -m 0644 ${S}/nvpmodel.service ${D}${systemd_system_unitdir}
>> > }
>> > ```
>> > Would you have any idea why the nvpmodel.conf prepend is ignored and the
>> > file never ends up in ${WORKDIR}.
>> >
>> > I've made sure the paths are correct. nvpmodel.conf exists and if I put
>> a
>> > typo like nvpmodel.conf_blabla bitbake throws a warning that it cannot
>> find
>> > the file. So I'm sure the file is found but somehow bitbake ignores it.
>> >
>> > I'm having this issue with this one single recipe only, none of the
>> others
>> > in my build system so I'm a bit puzzled.
>>
>> Always use bitbake -e to verify that the file://nvpmodel.conf ends where
>> you expect it to end (and if it doesn't the history will show you why
>> not).
>>
>> >
>> > Thanks,
>> > -Damien
>>
>> > --
>> > _______________________________________________
>> > yocto mailing list
>> > yocto@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>> --
>> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>>
>
>
[-- Attachment #2: Type: text/html, Size: 7870 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bbappend extra SRC_URI ignored
2018-06-14 14:23 ` Martin Jansa
@ 2018-06-15 10:50 ` Damien LEFEVRE
0 siblings, 0 replies; 8+ messages in thread
From: Damien LEFEVRE @ 2018-06-15 10:50 UTC (permalink / raw)
To: Martin Jansa; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 6070 bytes --]
It's exactly as you said. Thanks a lot!
I got it solved and learned some new tricks =)
-Damien
On Thu, Jun 14, 2018 at 5:23 PM, Martin Jansa <martin.jansa@gmail.com>
wrote:
> See ./recipes-bsp/tegra-binaries/tegra-shared-binaries.inc
>
> It's disabling standard do_fetch, do_unpack, do_patch and replacing them
> with tegra-binaries:do_unpack tegra-binaries:do_preconfigure which
> populates
> S directory in work-shared
> S = "${TMPDIR}/work-shared/L4T-${SOC_FAMILY}-${PV}-${PR}/Linux_for_Tegra"
>
> so basically you need to add it in tegra-binaries recipe (not tegra-tools).
>
> On Thu, Jun 14, 2018 at 3:22 PM Damien LEFEVRE <lefevre.da@gmail.com>
> wrote:
>
>>
>> Thanks
>>
>> Here are some interesting parts of bitbake -e. It seems my syntax is
>> correct
>>
>>
>> # $FILESEXTRAPATHS [3 operations]
>> # set? /home/damien/procbox-pyro/sources/poky/meta/conf/
>> bitbake.conf:325
>> # "__default:"
>> # set /home/damien/procbox-pyro/sources/poky/meta/conf/
>> documentation.conf:173
>> # [doc] "Extends the search path the OpenEmbedded build system uses
>> when looking for files and patches as it processes recipes and append
>> files."
>> # _prepend[tegra186] /home/damien/procbox-pyro/
>> sources/meta-procbox/meta-tegra/recipes-bsp/tegra-
>> binaries/tegra-tools_28.2.0.bbappend:1
>> # "/home/damien/procbox-pyro/sources/meta-procbox/meta-
>> tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186:"
>> # pre-expansion value:
>> # "/home/damien/procbox-pyro/sources/meta-procbox/meta-
>> tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186:__default:"
>> FILESEXTRAPATHS="/home/damien/procbox-pyro/sources/meta-
>> procbox/meta-tegra/recipes-bsp/tegra-binaries/tegra-tools_28.2.0/tegra186
>> :__default:"
>>
>> #
>> # $SRC_URI [10 operations]
>> .....
>> # " file://nvcamera-daemon.init file://nvcamera-daemon.service
>> file://argus-daemon.init file://argus-daemon.service
>> file://nvstartup.init file://nvstartup.service "
>> # _append[tegra186] /home/damien/procbox-pyro/
>> sources/meta-tegra/recipes-bsp/tegra-binaries/tegra-
>> binaries-28.2.0.inc:19
>> # " file://tegra186-flash-helper.sh file://nvpmodel.init
>> file://nvpmodel.service "
>> # set /home/damien/procbox-pyro/sources/meta-tegra/recipes-
>> bsp/tegra-binaries/tegra-shared-binaries.inc:8
>> # ""
>> # _prepend[tegra186] /home/damien/procbox-pyro/
>> sources/meta-procbox/meta-tegra/recipes-bsp/tegra-
>> binaries/tegra-tools_28.2.0.bbappend:2
>> # "file://nvpmodel.conf "
>> # set tegra-binaries-28.2.0.inc:42 [__anon_46__home_damien_
>> procbox_pyro_sources_meta_tegra_recipes_bsp_tegra_
>> binaries_tegra_binaries_28_2_0_inc]
>> # [md5sum] "22bbd0002db06bb26bf5de2d17cea8eb"
>> # set tegra-binaries-28.2.0.inc:43 [__anon_46__home_damien_
>> procbox_pyro_sources_meta_tegra_recipes_bsp_tegra_
>> binaries_tegra_binaries_28_2_0_inc]
>> # [sha256sum] "62f57b4c03fedde1fe0a1635bd0828
>> b334308eca71bd21f25ae5757f48fb3a76"
>> # pre-expansion value:
>> # "file://nvpmodel.conf file://tegra186-flash-helper.sh
>> file://nvpmodel.init file://nvpmodel.service "
>> SRC_URI="file://nvpmodel.conf file://tegra186-flash-helper.sh
>> file://nvpmodel.init file://nvpmodel.service "
>>
>> Then no other mentions until the do_install
>>
>> Yet the nvpmodel.conf is never copied to ${WORKDIR} which
>> is /home/damien/procbox-pyro/build-jetson-tx2/tmp/work/
>> aarch64_tegra186-poky-linux/tegra-tools/28.2.0-r0 in my case.
>>
>> Could some bitbake options disable this standard behavior?
>>
>> On Thu, Jun 14, 2018 at 3:33 PM, Martin Jansa <martin.jansa@gmail.com>
>> wrote:
>>
>>> On Thu, Jun 14, 2018 at 03:16:00PM +0300, Damien LEFEVRE wrote:
>>> > HI,
>>> >
>>> > I'm working on meta-tegra layer and I'd like to append a recipe. The
>>> > original recipe looks like this:
>>> > https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.
>>> 2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb
>>> > <https://github.com/madisongh/meta-tegra/blob/rocko-l4t-r28.
>>> 2/recipes-bsp/tegra-binaries/tegra-tools_28.2.0.bb>
>>> >
>>> > I've made a tegra-tools_28.2.0.bbappend to change the default PM_CONFIG
>>> > DEFAULT from 2 to 3 to get max performance in nvpmodel.conf
>>> configuration
>>> > file.
>>> >
>>> > ```
>>> > FILESEXTRAPATHS_prepend := "${THISDIR}/files/tegra186:"
>>> > SRC_URI_prepend_tegra186 += "file://nvpmodel.conf "
>>> >
>>> > do_install_append_tegra186() {
>>> > install -d ${D}${sysconfdir}
>>> > install -m 0755 ${B}/usr/sbin/nvpmodel ${D}${sbindir}/
>>> > install -m 0644 ${WORKDIR}/nvpmodel.conf
>>> ${D}${sysconfdir}/nvpmodel.conf
>>> > install -d ${D}${sysconfdir}/init.d
>>> > install -m 0644 ${S}/nvpmodel.init ${D}${sysconfdir}/init.d/
>>> nvpmodel
>>> > install -d ${D}${systemd_system_unitdir}
>>> > install -m 0644 ${S}/nvpmodel.service ${D}${systemd_system_unitdir}
>>> > }
>>> > ```
>>> > Would you have any idea why the nvpmodel.conf prepend is ignored and
>>> the
>>> > file never ends up in ${WORKDIR}.
>>> >
>>> > I've made sure the paths are correct. nvpmodel.conf exists and if I
>>> put a
>>> > typo like nvpmodel.conf_blabla bitbake throws a warning that it cannot
>>> find
>>> > the file. So I'm sure the file is found but somehow bitbake ignores it.
>>> >
>>> > I'm having this issue with this one single recipe only, none of the
>>> others
>>> > in my build system so I'm a bit puzzled.
>>>
>>> Always use bitbake -e to verify that the file://nvpmodel.conf ends where
>>> you expect it to end (and if it doesn't the history will show you why
>>> not).
>>>
>>> >
>>> > Thanks,
>>> > -Damien
>>>
>>> > --
>>> > _______________________________________________
>>> > yocto mailing list
>>> > yocto@yoctoproject.org
>>> > https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>> --
>>> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>>>
>>
>>
[-- Attachment #2: Type: text/html, Size: 8853 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-06-15 10:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-14 12:16 bbappend extra SRC_URI ignored Damien LEFEVRE
2018-06-14 12:24 ` Robert P. J. Day
2018-06-14 12:32 ` Damien LEFEVRE
2018-06-14 12:32 ` Maciej Pijanowski
2018-06-14 12:33 ` Martin Jansa
2018-06-14 13:22 ` Damien LEFEVRE
2018-06-14 14:23 ` Martin Jansa
2018-06-15 10:50 ` 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.