Merge pull request #1698 from experimental-platform/preserve-system-map

coreos-kernel: preserve 'System.map' during kernel build
This commit is contained in:
Vito Caputo 2016-01-04 12:43:43 -08:00
commit 5425b74c21

View File

@ -156,6 +156,11 @@ prepare-lib-modules-release-dirs() {
"${D}/usr/lib/modules/${version}" || die
# Clean up the build tree and install for out-of-tree module builds
find "build/" -follow -maxdepth 1 -name 'System.map' -print \
| cpio -pd \
--preserve-modification-time \
--owner=root:root \
"${D}/usr/lib/modules/${version}" || die
kmake clean
find "build/" -type d -empty -delete || die
rm --recursive \