mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-10 06:14:13 +01:00
cross-ng: linux and linux-headers: specify ARCH for cross build
This commit is contained in:
parent
db51ee9325
commit
4f2d91dc65
@ -56,9 +56,10 @@
|
||||
used, because it requires <application>rsync</application>, which may not
|
||||
be available. The headers are first placed in
|
||||
<filename class="directory">./usr</filename>, then copied to the needed
|
||||
location.</para>
|
||||
location. Replace <replaceable>x86</replaceable> with a value suitable
|
||||
for your target machine if it's not a 32-bit or 64-bit x86:</para>
|
||||
|
||||
<screen><userinput remap="make">make headers
|
||||
<screen><userinput remap="make">make headers ARCH=<replaceable>x86</replaceable>
|
||||
find usr/include -name '.*' -delete
|
||||
rm usr/include/Makefile
|
||||
</userinput><userinput remap="install">cp -rv usr/include $LFS/usr</userinput></screen>
|
||||
|
@ -58,7 +58,7 @@
|
||||
<para>There are several ways to configure the kernel options. Usually,
|
||||
This is done through a menu-driven interface, for example:</para>
|
||||
|
||||
<screen role="nodump"><userinput>make ARCH=x86 CROSS_COMPILE=$LFS_TGT- menuconfig</userinput></screen>
|
||||
<screen role="nodump"><userinput>make ARCH=<replaceable>x86</replaceable> CROSS_COMPILE=$LFS_TGT- menuconfig</userinput></screen>
|
||||
|
||||
<variablelist>
|
||||
<title>The meaning of make environment variables:</title>
|
||||
@ -66,7 +66,9 @@
|
||||
<varlistentry>
|
||||
<term><command>ARCH=x86</command></term>
|
||||
<listitem>
|
||||
<para>Configure the kernel for running on the target machine.</para>
|
||||
<para>Configure the kernel for running on the target machine.
|
||||
Replace <replaceable>x86</replaceable> with a value suitable
|
||||
for your target machine if it's not a 32-bit or 64-bit x86.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user