Download MLFS
Obtain MLFS
MLFS is maintained as a rolling and stable release, based on the trajectory of the LFS book. There aren't stable releases available online made by the editors. Online releases are planned but it's unclear when they will be available. GLFS covers how to render stable MLFS releases in the GLFS stable releases.
MLFS can be obtained from the git repository:
git clone --branch multilib https://git.linuxfromscratch.org/lfs.git mlfs
It is recommended to give the name of the directory (here: mlfs) to avoid clashes with other clones of the LFS repository.
If there is a clone downloaded already, it can be used too. In this case, checkout the multilib branch:
cd <where-clone-is> && git checkout multilib
Rendering the MLFS book
Rendering works the same way as it does with the LFS book. The essential parameter REV and BASEDIR should be set. In addition to the common parameters, MLFS has introduced ARCH which specifies which kind of extensions should be included in the produced output. ARCH can be set to one of the following:
- ml_32: Include m32 extensions only
- ml_x32: Include mx32 extensions only
- ml_all: Include both m32 and mx32
- none: Include no extensions (normal LFS)
Samples:
- Init system: sysv; ML extension: m32
make BASEDIR=... REV=sysv ARCH=ml_32
- Init system: systemd; ML extension: m32 and mx32
make BASEDIR=... REV=systemd ARCH=ml_all
Packages for MLFS
MLFS has the same packages as LFS, save for one addition:
- ISL: Used for enabling grahite loop optimizations in GCC.