%general-entities; ]> Build Variables Configuration # 1 - Creating different architecture tools This method is recommended for all LiveCD based distro's. During the building of the cross-compile tools you will need to set a few variables that will be dependent on your particular needs. The first variable will be the triplet of the HOST machine. You will need to set the CHOST triplet to match your particular needs. To set this information you can issue the following command: export LFS_HOST="${MACHTYPE}" Now you will need to set the target triplet for the target architecture. You can do this by running the same command as above, just running it on the target machine. If you can't run the command on the target machine, you can use the table at the bottom of this page. Set the command using the method listed below: export LFS_TARGET="{target triplet}" Configuration # 2 - Creating same architecture tools You can also create clean tools on your current distro. This will ensure that you have all the prerequisites for the LFS build. You will need to set your host target triplet a little differently. To set this information you can issue the following commands: export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`" Now you will need to set the target triplet for the target, which in this case is very simple. Set the command using the method listed below: export LFS_TARGET="${MACHTYPE}" Sanity Check Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our target, we will get some failures during our cross-compile: if [ "${LFS_HOST}" = "${LFS_TARGET}" ]; then \ echo "Host and Target can't be the same." ; fi If you received an message, "Host and Target can't be the same." You will need to use the other Configuration Method. This will prevent build issues during the early phases of the build. Copy settings to Environment Now we will add these to ~/.bashrc, just in case you have to exit and restart building later: echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc List of architectures, target triplets, and recommended book Architecture Target Triplet 32 Bit, 64 Bit, 32/64 Bit Pentium, K6, 586 Compatibles i586-pc-linux-gnu 32 Bit Pentium II, Pentium III, Pentium 4 i686-pc-linux-gnu 32 Bit Athlon, Duron i686-pc-linux-gnu 32 Bit Athlon64 x86_64-pc-linux-gnu 32/64 Bit PowerPC powerpc-unknown-linux-gnu 32 Bit PowerPC64 ppc64-unknown-linux-gnu 64 Bit MIPS mips-unknown-linux-gnu 32 Bit MIPS Little Endian mipsel-unknown-linux-gnu 32 Bit MIPS 64 mips64-unknown-linux-gnu 64 Bit MIPS 64 Little Endian mips64el-unknown-linux-gnu 64 Bit Cypress sparc-unknown-linux-gnu 32 Bit Supersparc and Hypersparc sparc-unknown-linux-gnu 32 Bit Ultrasparc sparc64-unknown-linux-gnu 32/64 Bit Alpha alpha-unknown-linux-gnu 64 Bit