[lfs] branch trunk updated: loongarch: kernel: strip modules
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <176988649735.22254.7932706944566165538@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository lfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 28a9647e8 loongarch: kernel: strip modules
28a9647e8 is described below
commit 28a9647e866997f59a9036d262be9f6a6dba9a90
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Feb 1 03:04:25 2026 +0800
loongarch: kernel: strip modules
Well, I don't think this is the correct solution (IMO the loader should
just ignore debug sections) and I cannot reproduce it at all on all
other architectures. But maybe it's simply because the debug symbol is
too large on LoongArch.
Make it "at least work" anyway.
---
chapter10/kernel.xml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index 66e58f46b..acc61e631 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -395,7 +395,13 @@
<para>Unless module support has been disabled in the kernel configuration,
install the modules with:</para>
-<screen><userinput remap="install">make modules_install</userinput></screen>
+<screen><userinput remap="install">make INSTALL_MOD_STRIP=1 modules_install</userinput></screen>
+
+ <!-- FIXME: I don't think this is the correct solution. -->
+ <para>The <parameter>INSTALL_MOD_STRIP=1</parameter> option makes the
+ build system strip the kernel modules after installation. We need that
+ to work around a memory allocate failure when the kernel loads large
+ modules (for example the AMDGPU module).</para>
<para>After kernel compilation is complete, additional steps are
required to complete the installation. Some files need to be copied to
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page