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

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

Reply via email to