Good day Yocto dev community,

I would like to ask how do I make a certain package only publishable in
native in just one recipe? I would want that my scripts will be published
as a separate package ${PN}-scripts but not publishable in target sysroot.
I want it be placed in host sysroot both in native and nativesdk.

Right now here's what I did:

PROVIDES_${PN}_class-native += "${PN}-scripts"
PACKAGES_class-native += " ${PN}-scripts"
FILES_${PN} += "${datadir}/sample/*"
FILES_${PN}-scripts += "${bindir}/*"

BBCLASSEXTEND += "native nativesdk"


With the above changes, the sample unit still publishes the script in
target sysroot in SDK and in image.

Please enlighten me.

Thanks,
Joseph
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to