mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-25 08:21:17 +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
|
"${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 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user