7.12. Yaboot-1.3.17

The Yaboot package contains a PowerPC Boot Loader for machines using Open Firmware such as NewWorld Macintoshes.

7.12.1. Installation of Yaboot

The following patch adds stub functions for newer e2fsprogs releases:

patch -Np1 -i ../yaboot-1.3.17-stubfuncs-1.patch

The following patch adds Parted support to yabootconfig:

patch -Np1 -i ../yaboot-1.3.17-parted-1.patch

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

patch -Np1 -i ../yaboot-1.3.17-ofpath_path_prefix-1.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

Compile the package:


Install the package:

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

Details on this package are located in Section 10.68.2, “Contents of Yaboot.”