# Yaboot-&yaboot-version;

## Installation of Yaboot

The following patch allows `ofpath` to use `PATH_PREFIX` like the other `ybin` scripts:

    patch -Np1 -i ../&yaboot-ofpath_path-patch;

The Makefile is already set to do kernel-style cross-compiling, but it will try to use `strip` to strip the second-stage loader. It also tries to change user and group ownership for the installed files to `root`, which the `clfs` user cannot do. It will also fail due to a compile warning with the -Werror flag on. The following command fixes these issues:

    cp -v Makefile{,.orig}
    sed -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
        -e 's/-o root -g root//' \
        -e 's/-Werror//' \
        Makefile.orig > Makefile

    make CROSS=${CLFS_TARGET}-

    make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX="" install

Details on this package are located in contents-yaboot