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?
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.
I think that adding a do_shared_workdir[cleandirs] entry for the kernel-build-artifacts, should address this.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f295c1e944f5b9b972930ccac577206fbeb50298