Skip to content

Commit d1e9628

Browse files
committed
linux-qcom-next: include prune.config to reduce kernel Image size
Added prune.config to KBUILD_CONFIG_EXTRA for aarch64 builds. This disables configurations for non-target architectures, significantly reducing kernel size: Image size: 39.5 MB → 25.7 MB vmlinux size: 150 MB → 106 MB Signed-off-by: Viswanath Kraleti <[email protected]>
1 parent c038c52 commit d1e9628

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

recipes-kernel/linux/linux-qcom-next_git.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ KBUILD_DEFCONFIG ?= "defconfig"
3737
KBUILD_DEFCONFIG:qcom-armv7a = "qcom_defconfig"
3838

3939
KBUILD_CONFIG_EXTRA = "${@bb.utils.contains('DISTRO_FEATURES', 'hardened', '${S}/kernel/configs/hardening.config', '', d)}"
40+
KBUILD_CONFIG_EXTRA:append:aarch64 = "${S}/arch/arm64/configs/prune.config"
4041

4142
do_configure:prepend() {
4243
# Use a copy of the 'defconfig' from the actual repo to merge fragments

0 commit comments

Comments
 (0)