Bug 11880

Summary: kernel-devsrc: multiple System.map files present in kernel-build-artifacts
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: kernelAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: sgw, tom.zanussi
Version: 2.4   
Target Milestone: 2.5 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jonathan Liu 2017-08-01 13:46:29 UTC
If you build build linux kernel recipe, change the version and build it again you end up with multiple System.map files in build/tmp/work-shared/*/kernel-build-artifacts.

For example:
System.map-4.12.2
System.map-4.12.3
System.map-4.12.4

If your image recipe has kernel-devsrc in TOOLCHAIN_TARGET_TASK, then bitbake myimage -c populate_sdk will include these System.map files for multiple kernel versions besides the one currently being used.

Probably only the System.map file for the current kernel version should end up in kernel-devsrc?
Comment 1 Bruce Ashfield 2017-08-15 14:14:38 UTC
Accepting this. But it is unlikely that I'll have cycles for it this release. putting to m4, since this would be a stabilization fix.
Comment 2 Saul Wold 2017-11-22 18:48:07 UTC
I think that adding a do_shared_workdir[cleandirs] entry for the kernel-build-artifacts, should address this.