[lfs] 02/02: Reapply "loongarch: kernel: strip modules"

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch xry111/loongarch
in repository lfs.

commit ca63d0fada16a62c175d4e7ae485c10c17b0e218
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Feb 1 03:36:58 2026 +0800

    Reapply "loongarch: kernel: strip modules"
    
    This reverts commit d3ecbdde9a86497695d1cb5649f8e126615a3e91.
    
    Reapply it on the correct branch.
---
 chapter10/kernel.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index e4fb30753..e3eb6b007 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -366,7 +366,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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.