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 CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"
Now we will set our Target Triplet:
export CLFS_TARGET="powerpc64-unknown-linux-gnu"
Now we will set our Target Triplet for 32 Bits:
export CLFS_TARGET32="powerpc-unknown-linux-gnu"
Now we will add these to ~/.bashrc, just in case you have to exit and restart building later:
echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bashrc