%general-entities; ]> grub &grub-version;
&grub-url;
GRUB-&grub-version; GRUB tools <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../chapter08/grub.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&grub-tmp-sbu;</seg> <seg>&grub-tmp-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of GRUB Prepare GRUB for compilation: ./configure --prefix=$LFS/tools \ --build=$(build-aux/config.guess) \ --host=$(build-aux/config.guess) \ --target=$LFS_TGT \ --program-prefix=lfs- \ --disable-werror The meaning of the new configure options: --build=..., --host=..., and --target=$LFS_TGT This allows the build to generate GRUB utilities running on the host system, but generating the bootloader files for $LFS_TGT. Then we can use the bootloader files to boot the temporary system on the target machine. --program-prefix=lfs- This ensures that the installed programs have lfs- prepended to their names, to better distinguish them from the GRUB installation of the host distro. --disable-werror This allows the build to complete with warnings introduced by more recent Flex versions. Compile the package: make Install the package: make install <para>Details on this package are located in <xref linkend="contents-gRUB" role="."/></para> </sect2> </sect1>