mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-25 00:11:23 +02:00
preserve 'System.map' during kernel build
allows the proper operation of 'depmod' when building out-of-tree modules
This commit is contained in:
parent
2c00091aa6
commit
e91a9e8525
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user