From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] kernel: Strip modules Date: Thu, 09 Jan 2025 15:08:22 +0000 Message-ID: <20250109150822.3111295-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0032315720207612568==" List-Id: --===============0032315720207612568== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The kernel does not strip modules by default. This can be enabled by passing INSTALL_MOD_STRIP=3D1 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 --- lfs/linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs/linux b/lfs/linux index c081e89bf..88a04f90e 100644 --- a/lfs/linux +++ b/lfs/linux @@ -168,7 +168,7 @@ else cd $(DIR_APP) && cp -v arch/$(KERNEL_ARCH)/boot/$(KERNEL_TARGET) /boot/vmli= nuz-$(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=3D1 =20 ifneq "$(BUILD_PLATFORM)" "x86" cd $(DIR_APP) && make $(MAKETUNING) dtbs --=20 2.39.5 --===============0032315720207612568==--