mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-20 11:15:06 +01:00
loongarch: kernel: Disable relaxation for building a module
Link: https://git.kernel.org/torvalds/c/03c53eb90c0c
This commit is contained in:
parent
2485dc3a99
commit
c4b61b12df
@ -291,6 +291,14 @@
|
|||||||
configuration menus and create the kernel configuration from
|
configuration menus and create the kernel configuration from
|
||||||
scratch.</para>
|
scratch.</para>
|
||||||
|
|
||||||
|
<para>Fix an issue causing all kernel modules built with Binutils-2.41
|
||||||
|
or later not loadable:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="pre">cat >> arch/loongarch/Makefile << EOF
|
||||||
|
<literal>KBUILD_AFLAGS_MODULE += -Wa,-mno-relax
|
||||||
|
KBUILD_CFLAGS_MODULE += -Wa,-mno-relax</literal>
|
||||||
|
EOF</userinput></screen>
|
||||||
|
|
||||||
<para>Compile the kernel image and modules:</para>
|
<para>Compile the kernel image and modules:</para>
|
||||||
|
|
||||||
<screen><userinput remap="make">make</userinput></screen>
|
<screen><userinput remap="make">make</userinput></screen>
|
||||||
|
Loading…
Reference in New Issue
Block a user