From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] kernel: Strip modules
Date: Thu, 09 Jan 2025 15:08:22 +0000 [thread overview]
Message-ID: <20250109150822.3111295-1-michael.tremer@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]
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(a)ipfire.org>
---
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/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
--
2.39.5
reply other threads:[~2025-01-09 15:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250109150822.3111295-1-michael.tremer@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox