%general-entities; ]> Creating Build and Sources Directories Create a directory for the CLFS build (the exact location is up to you): mkdir -p /mnt/clfs Assign it to the CLFS environment variable: export CLFS=/mnt/clfs Ensure that this new directory has permissions that are too restrictive such that you can write to it as a non-root user. chmod 777 ${CLFS} Create a sysroot directory which will be used when building the cross compiler and link its usr directory to itself such that everything installs to the sysroot: mkdir -p ${CLFS}/cross-tools/${CLFS_TARGET} ln -sfv . ${CLFS}/cross-tools/${CLFS_TARGET}/usr Downloaded packages and patches will need to be stored somewhere that is conveniently available throughout the entire build. A working directory is also required to unpack the sources and build them. ${CLFS}/sources can be used both as the place to store the tarballs and patches and as a working directory. Create a directory to store the sources: mkdir -v ${CLFS}/sources