diff options
Diffstat (limited to 'source/k/kernel-generic.SlackBuild')
-rwxr-xr-x | source/k/kernel-generic.SlackBuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/k/kernel-generic.SlackBuild b/source/k/kernel-generic.SlackBuild index 4b31162a..76ae1452 100755 --- a/source/k/kernel-generic.SlackBuild +++ b/source/k/kernel-generic.SlackBuild @@ -97,6 +97,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 |