7.15. Yaboot-1.3.13

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

7.15.1. Installation of Yaboot

Yaboot has a compilation error. The following patch properly fixes the issue:

patch -Np1 -i ../yaboot-1.3.13-fix-1.patch

The following patch removes a redundant test which prevents ofpath from executing against SATA disks:

patch -Np1 -i ../yaboot-1.3.13-ofpath_sata-1.patch

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

patch -Np1 -i ../yaboot-1.3.13-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 expects to be running as root for the install, and to install for the root user, which user CLFS cannot do. The following command will fix this:

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

Compile the package:

make CROSS=${CLFS_TARGET}-

Install the package:

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

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