[yocto] Split package in native and nativesdk

Joseph Andrew de la Peña jdelapena at lexmark.com
Thu Nov 13 21:30:07 PST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20141114/b377bde8/attachment.html>


More information about the yocto mailing list