cross-ng: linux and linux-headers: specify ARCH for cross build

This commit is contained in:
Xi Ruoyao 2021-12-17 20:15:38 +08:00
parent db51ee9325
commit 4f2d91dc65
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC
2 changed files with 7 additions and 4 deletions

View File

@ -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>

View File

@ -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>