Changeset 37e35d2 for chapter01/how.xml
- Timestamp:
- 06/29/2020 07:55:01 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- c4804e8
- Parents:
- d4fdde6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/how.xml
rd4fdde6 r37e35d2 45 45 <xref linkend="chapter-final-preps"/> carefully as it explains several 46 46 important issues you need be aware of before beginning to 47 work your way through <xref linkend="chapter- temporary-tools"/> and beyond.</para>47 work your way through <xref linkend="chapter-cross-tools"/> and beyond.</para> 48 48 49 <para><xref linkend="chapter-temporary-tools"/> explains the 50 installation of a number of packages that will form the basic 51 development suite (or toolchain) which is used to build the actual 52 system in <xref linkend="chapter-building-system"/>. Some of these 53 packages are needed to resolve circular dependencies—for example, 54 to compile a compiler, you need a compiler.</para> 49 <para><xref linkend="chapter-cross-tools"/>, explains the installation of 50 the initial tool chain, (binutils, gcc, and glibc) using cross compilation 51 techniques to isolate the new tools from the host system.</para> 55 52 56 <para><xref linkend="chapter-temporary-tools"/> also shows you how to 57 build a first pass of the toolchain, including Binutils and GCC (first pass 58 basically means these two core packages will be reinstalled). 59 The next step is to build Glibc, the C library. Glibc will be compiled by 60 the toolchain programs built in the first pass. Then, a second pass of the 61 toolchain will be built. This time, the toolchain will be dynamically linked 62 against the newly built Glibc. The remaining <xref 63 linkend="chapter-temporary-tools"/> packages are built using this second 64 pass toolchain. When this is done, the LFS installation process will no 65 longer depend on the host distribution, with the exception of the running 66 kernel. </para> 53 <para><xref linkend="chapter-temporary-tools"/> shows you how to 54 cross-compile basic utilities using the just built cross-toolchain.</para> 55 56 <para><xref linkend="chapter-chroot-temporary-tools"/> then enters a 57 "chroot" environment and uses the previously built tools to build 58 the additional tools needed to build and test the final system.</para> 67 59 68 60 <para>This effort to isolate the new system from the host distribution may 69 seem excessive. A full technical explanation as to why this is done is provided in70 <xref linkend="ch-tools-toolchaintechnotes"/>.</para>61 seem excessive. A full technical explanation as to why this is done is 62 provided in <xref linkend="ch-tools-toolchaintechnotes"/>.</para> 71 63 72 <para>In <xref linkend="chapter-building-system"/>, the full LFS system is 73 built. The <command>chroot</command> (change root) program is used to enter 74 a virtual environment and start a new shell whose root directory will be 75 set to the LFS partition. This is very similar to rebooting and instructing 76 the kernel to mount the LFS partition as the root partition. The system 77 does not actually reboot, but instead uses <command>chroot</command> because 78 creating a bootable system requires additional work which is not necessary 79 just yet. The major advantage is that <quote>chrooting</quote> allows you 80 to continue using the host system while LFS is being built. While waiting 81 for package compilations to complete, you can continue using your computer as 82 normal.</para> 64 <para>In <xref linkend="chapter-building-system"/>, The 65 full LFS system is built. Another advantage provided by the chroot 66 environment is that it allows you to continue using the host system 67 while LFS is being built. While waiting for package compilations to 68 complete, you can continue using your computer as normal.</para> 83 69 84 70 <para>To finish the installation, the basic system configuration is set up in
Note:
See TracChangeset
for help on using the changeset viewer.