diff options
Diffstat (limited to 'source/k/kernel-modules.SlackBuild')
-rwxr-xr-x | source/k/kernel-modules.SlackBuild | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/k/kernel-modules.SlackBuild b/source/k/kernel-modules.SlackBuild index 8bf42a5ec..891dc5131 100755 --- a/source/k/kernel-modules.SlackBuild +++ b/source/k/kernel-modules.SlackBuild @@ -83,6 +83,14 @@ if [ ! -z "${KERNEL_CLEAN}" ]; then ( cd ${KERNEL_SOURCE} echo "Cleaning kernel source (make clean)..." make clean + # Make sure header files aren't missing... + make prepare + # Don't package the kernel in the sources: + find . -name "*Image" -exec rm "{}" \+ + # No need for these: + rm -f .config.old .version modules.* + find . -name "*.cmd" -exec rm -f "{}" \+ + rm .*.d ) fi @@ -95,6 +103,8 @@ fi ( cd ${KERNEL_SOURCE} echo "Running make oldconfig..." make oldconfig + echo "Running a preliminary make (needed to create modules.builtin.modinfo)..." + make $NUMJOBS || exit 1 echo "Building kernel modules..." make $NUMJOBS modules || exit 1 echo "Installing kernel modules to $PKG..." |