From 8a2fad5beb089948083cab5ffd174bc687d31f05 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Mon, 1 Jan 2024 02:07:48 +0100 Subject: [PATCH] kernel: call make with `INSTALL_MOD_STRIP=1` so modules are stripped - also, don't add target 'install' twice --- lib/functions/compilation/kernel.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/functions/compilation/kernel.sh b/lib/functions/compilation/kernel.sh index d3766b49cb..d5a66faf88 100644 --- a/lib/functions/compilation/kernel.sh +++ b/lib/functions/compilation/kernel.sh @@ -127,9 +127,12 @@ function kernel_prepare_build_and_package() { ) [ -z "${SRC_LOADADDR}" ] || install_make_params_quoted+=("${SRC_LOADADDR}") # For uImage + # @TODO: Only combining `install` and `modules_install` enable mixed-build and __build_one_by_one # We should spilt the `build` and `install` into two make steps as the kernel required - build_targets+=("install" "${KERNEL_INSTALL_TYPE:-install}") + build_targets+=("${KERNEL_INSTALL_TYPE:-install}") + + install_make_params_quoted+=("INSTALL_MOD_STRIP=1") # strip modules during install build_targets+=("modules_install") # headers_install disabled, only used for libc headers if [[ "${KERNEL_BUILD_DTBS:-yes}" == "yes" ]]; then