preserve 'System.map' during kernel build

allows the proper operation of 'depmod' when building out-of-tree modules
This commit is contained in:
Kamil Domański 2015-12-17 17:30:19 +01:00
parent 2c00091aa6
commit e91a9e8525

View File

@ -156,6 +156,11 @@ prepare-lib-modules-release-dirs() {
"${D}/usr/lib/modules/${version}" || die "${D}/usr/lib/modules/${version}" || die
# Clean up the build tree and install for out-of-tree module builds # 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 kmake clean
find "build/" -type d -empty -delete || die find "build/" -type d -empty -delete || die
rm --recursive \ rm --recursive \