]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
kernel: Strip modules
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Jan 2025 15:08:22 +0000 (15:08 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 11 Jan 2025 08:49:05 +0000 (09:49 +0100)
The kernel does not strip modules by default. This can be enabled by
passing INSTALL_MOD_STRIP=1 when installing the modules.

Since we are not actually building the kernel with debuginfo and we are
comressing the modules afterwards, there is not a huge saving on disk
space, but there is a small saving of memory when loading the modules.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/linux

index 9c613a3793233356091b01c3787077ad497d16e4..080b8174625c85841d3dd87892324cb3c2257d92 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -168,7 +168,7 @@ else
        cd $(DIR_APP) && cp -v arch/$(KERNEL_ARCH)/boot/$(KERNEL_TARGET) /boot/vmlinuz-$(KVER)
        cd $(DIR_APP) && cp -v System.map /boot/System.map-$(KVER)
        cd $(DIR_APP) && cp -v .config /boot/config-$(KVER)
-       cd $(DIR_APP) && make $(MAKETUNING) modules_install
+       cd $(DIR_APP) && make $(MAKETUNING) modules_install INSTALL_MOD_STRIP=1
 
 ifneq "$(BUILD_PLATFORM)" "x86"
        cd $(DIR_APP) && make $(MAKETUNING) dtbs