Chapter 4. Final Preparations

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-PowerPC64-Multilib

### Part II. Preparing for the Build

- Prev

  Additional Patches for PowerPC64

- Next

  Creating the $LFS/tools Directory

- Up.
- Home

# 4. Final Preparations

## 4.1. About $LFS

Throughout this book, the environment variable `LFS` will be used several times. It is paramount that this variable is always defined. It should be set to the mount point chosen for the CLFS partition. Check that the `LFS` variable is set up properly with:

    echo $LFS

Make sure the output shows the path to the CLFS partition's mount point, which is `/mnt/lfs` if the provided example was followed. If the output is incorrect, the variable can be set with:

    export LFS=/mnt/lfs

Having this variable set is beneficial in that commands such as install -dv $LFS/tools can be typed literally. The shell will automatically replace “$LFS” with “/mnt/lfs” (or whatever the variable was set to) when it processes the command line.

If you haven't created the `$LFS` directory, do so at this time by issuing the following commands:

    install -dv $LFS

Do not forget to check that `$LFS` is set whenever you leave and reenter the current working environment (as when doing a “su” to `root` or another user).

- Prev

  Additional Patches for PowerPC64

- Next

  Creating the $LFS/tools Directory

- Up.
- Home.