Re: [yocto] bbappend extra SRC_URI ignored

2018-06-15 Thread Damien LEFEVRE
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 
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 
> 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 
>> 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
>>> > >> 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}.
>>> >
>>> 

Re: [yocto] bbappend extra SRC_URI ignored

2018-06-14 Thread Martin Jansa
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  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 
> 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 

Re: [yocto] bbappend extra SRC_URI ignored

2018-06-14 Thread Maciej Pijanowski



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 



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

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend extra SRC_URI ignored

2018-06-14 Thread Damien LEFEVRE
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 
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
> >  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.ja...@gmail.com
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend extra SRC_URI ignored

2018-06-14 Thread Robert P. J. Day
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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] bbappend extra SRC_URI ignored

2018-06-14 Thread Martin Jansa
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
> 
> 
> 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.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] bbappend extra SRC_URI ignored

2018-06-14 Thread Damien LEFEVRE
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


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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto