cross-ng: remove kernel from hostreqs

This commit is contained in:
Xi Ruoyao 2022-02-19 12:25:04 +08:00
parent 1ea79fdb82
commit cb518e03d7
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC
3 changed files with 11 additions and 29 deletions

View File

@ -72,27 +72,6 @@
<para><emphasis role="strong">Gzip-1.3.12</emphasis></para> <para><emphasis role="strong">Gzip-1.3.12</emphasis></para>
</listitem> </listitem>
<listitem>
<para><emphasis role="strong">Linux Kernel-&min-kernel;</emphasis></para>
<para>The reason for the kernel version requirement is that we specify
that version when building <application>glibc</application> in
<xref linkend="chapter-cross-tools"/> and
<xref linkend="chapter-building-system"/>,
at the recommendation of the developers. It is also required by
udev.</para>
<para>If the host kernel is earlier than &min-kernel; you will need to replace
the kernel with a more up to date version. There are two ways
you can go about this. First, see if your Linux vendor provides a &min-kernel;
or later kernel package. If so, you may wish to install it. If your
vendor doesn't offer an acceptable kernel package, or you would prefer not to
install it, you can compile a kernel yourself. Instructions for
compiling the kernel and configuring the boot loader (assuming the host
uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
</listitem>
<listitem> <listitem>
<para><emphasis role="strong">M4-1.4.10</emphasis></para> <para><emphasis role="strong">M4-1.4.10</emphasis></para>
</listitem> </listitem>

View File

@ -91,7 +91,7 @@ cd build</userinput></screen>
--prefix=/usr \ --prefix=/usr \
--host=$LFS_TGT \ --host=$LFS_TGT \
--build=$(../scripts/config.guess) \ --build=$(../scripts/config.guess) \
--enable-kernel=&min-kernel; \ --enable-kernel=&linux-major-version;.&linux-minor-version; \
--with-headers=$LFS/usr/include \ --with-headers=$LFS/usr/include \
libc_cv_slibdir=/usr/lib</userinput></screen> libc_cv_slibdir=/usr/lib</userinput></screen>
@ -108,11 +108,13 @@ cd build</userinput></screen>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><parameter>--enable-kernel=&min-kernel;</parameter></term> <term><parameter>--enable-kernel=&linux-major-version;.&linux-minor-version;</parameter></term>
<listitem> <listitem>
<para>This tells Glibc to compile the library with support <para>This option tells the build system that this glibc may
for &min-kernel; and later Linux kernels. Workarounds for older be used with kernels as old as
kernels are not enabled.</para> &linux-major-version;.&linux-minor-version;. This means generating
workarounds in case a system call introduced in a later version
cannot be used.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -72,7 +72,7 @@ cd build</userinput></screen>
<screen><userinput remap="configure">../configure --prefix=/usr \ <screen><userinput remap="configure">../configure --prefix=/usr \
--disable-werror \ --disable-werror \
--enable-kernel=&min-kernel; \ --enable-kernel=&linux-major-version;.&linux-minor-version; \
--enable-stack-protector=strong \ --enable-stack-protector=strong \
--with-headers=/usr/include \ --with-headers=/usr/include \
libc_cv_slibdir=/usr/lib</userinput></screen> libc_cv_slibdir=/usr/lib</userinput></screen>
@ -89,10 +89,11 @@ cd build</userinput></screen>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><parameter>--enable-kernel=&min-kernel;</parameter></term> <term><parameter>--enable-kernel=&linux-major-version;.&linux-minor-version;</parameter></term>
<listitem> <listitem>
<para>This option tells the build system that this glibc may <para>This option tells the build system that this glibc may
be used with kernels as old as &min-kernel;. This means generating be used with kernels as old as
&linux-major-version;.&linux-minor-version;. This means generating
workarounds in case a system call introduced in a later version workarounds in case a system call introduced in a later version
cannot be used.</para> cannot be used.</para>
</listitem> </listitem>