Bug 6929

Summary: Enhance archiver to allow filter on recipe name
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Matthias Bilger <matthias>
Component: coreAssignee: Mariano Lopez <mariano.lopez>
Status: VERIFIED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: enhancement    
Priority: Medium CC: anibal.limon, bluelightning, bogdanx.a.voiculescu, mariano.lopez, meta.mr.watcher, meta.watcher
Version: 1.7   
Target Milestone: 1.9 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Matthias Bilger 2014-11-04 13:16:19 UTC
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.
Comment 1 Paul Eggleton 2014-11-06 15:43:22 UTC
For reference would require a simple extension to meta/classes/copyleft_filter.bbclass.
Comment 2 Mariano Lopez 2015-05-19 17:48:49 UTC
The implementation will be in copyleft_filter.bbclass as advised by Paul, it won't take a lot of lines.
Comment 3 Mariano Lopez 2015-05-27 16:30:11 UTC
Patch sent to the mailing list
Comment 4 Mariano Lopez 2015-06-19 17:05:02 UTC
Patch has been ACK by Paul Eggleton but hasn't been applied to master. Moving to 1.9M2
Comment 6 Daniel Istrate 2015-09-21 15:27:35 UTC
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.
Comment 7 Daniel Istrate 2015-09-22 11:37:19 UTC
Added a new oe-selftest testcase for this.
Patch sent: http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110792.html