Skip to contentSkip to conversation

Question about usage of FILESEXTRAPATHS variable

DISCUSSION embedded (VIVAVIS AG) 2 participants 2 messages Mar 22, 2022

lore
Share & tools
lore
#0 lore raw

Hi,

I wonder which assignment is correct within an append file.

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
or
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"

The development manual (latest version) shows in chapter 3.1.2:
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"

But in chapter 3.1.5 the recipes-bsp/formfactor append file uses
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

The reference manual only shows examples using ${PN}.

I've searched for ${BPN} usage in Poky and found only this one ./meta-poky/recipes-core/busybox/busybox_%.bbappend:FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"

Without additional prefix or suffix added, should I use ${PN} or ${BPN}? Are there possible pitfalls from using ${BPN} instead of ${PN}? When appending for a native recipe only, it seems clear to write ${BPN}-native.

It would be nice to shed some light onto this topic.

Thank you,

Carsten

#1 lore raw
Quoted 12 lines · VIVAVIS AG via lists.openembedded.org

I wonder which assignment is correct within an append file.

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
or
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"

The development manual (latest version) shows in chapter 3.1.2:
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"

But in chapter 3.1.5 the recipes-bsp/formfactor append file uses
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

Quoted 8 lines

The reference manual only shows examples using ${PN}.

I've searched for ${BPN} usage in Poky and found only this one ./meta-poky/recipes-core/busybox/busybox_%.bbappend:FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"

Without additional prefix or suffix added, should I use ${PN} or ${BPN}? Are there possible pitfalls from using ${BPN} instead of ${PN}? When appending for a native recipe only, it seems clear to write ${BPN}-native.

Both are valid, both have use-cases, but I'd say BPN would be usual as you'd normally not want patches to be different for native/target/nativesdk builds, which would be the primary reason to use PN.

I'd suggest that recipes that use PN are most likely never built for non-target (ie, native/nativesdk/cross), so there is no difference between PN and BPN.

Ross