The archiver should offer the possibility to filter on the recipe. At the moment only the license filter is available. Use-case: A build server builds the image, providing rpm packages. A user can download the vmlinux image (with debug symbols) and then needs access to the source which was compiled to use a external debugger such as TRACE32 or similar hardware.
For reference would require a simple extension to meta/classes/copyleft_filter.bbclass.
The implementation will be in copyleft_filter.bbclass as advised by Paul, it won't take a lot of lines.
Patch sent to the mailing list
Patch has been ACK by Paul Eggleton but hasn't been applied to master. Moving to 1.9M2
This bug is solved with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/copyleft_filter.bbclass?id=ae9102bda398359736ae0d46db388af51141d361
Verify on master: 7b86c771c80d0759c2ca0e57c46c4c966f89c49e Steps to verify: 1. Add to local.conf MACHINE = "genericx86-64" # Archiver INHERIT += "archiver" ARCHIVER_MODE[src] = "original" COPYLEFT_PN_INCLUDE = "busybox" COPYLEFT_PN_EXCLUDE = "zlib" 2. Build core-image-minimal bitbake core-image-minimal 3. Check that 'zlib' is excluded and 'busybox' is included: in tmp/deploy/sources/x86_64-poky-linux/ Additional test: 1. Clear the $BUILDDIR/tmp dir 2. Invert COPYLEFT_PN_INCLUDE AND COPYLEFT_PN_EXCLUDE 3. Build core-image-minimal 4. Check that 'zlib' is included and 'busybox' is excluded.
Added a new oe-selftest testcase for this. Patch sent: http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110792.html