# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: architecture/powerpc/boot/boot.in # Copyright (C) 2005 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- arch_boot_cd_pre() { # before r45543 vintage yaboot glue was here grubdir="$(sed -n "/lib.*mod$/ {s,grub2: \(.*\)/[^/]*,\1,p ; q}" \ $build_root/var/adm/flists/grub2)" grubarch="${grubdir##*/}" mkdir -p $isofsdir/{boot/grub,etc,ppc}/ cp -v $base/architecture/powerpc/boot/ofboot.b $isofsdir/boot/ cp -v $base/architecture/powerpc/boot/bootinfo.txt $isofsdir/ppc/ cp -v $base/architecture/powerpc/boot/boot.msg $isofsdir/ if [ "$SDECFG_POWERPC64_ENDIANESS" != 'le' ]; then cp -af $build_root/usr/lib*/grub/* $isofsdir/boot/grub/ rm -f $isofsdir/boot/grub/*/*.{module,img} # not needed in the image grub-mkimage -O powerpc-ieee1275 -p /boot/grub -o $isofsdir/boot/bootppc.elf \ -d $build_root/$grubdir/ --compression auto \ normal configfile all_video reboot \ part_gpt part_msdos part_apple iso9660 hfs hfsplus grub-mkimage -O powerpc-ieee1275 -p /boot/grub -o $isofsdir/install.bin \ -d $build_root/$grubdir/ --compression auto --note \ normal configfile all_video reboot \ part_gpt part_msdos part_apple iso9660 hfs hfsplus fi # header sed -n '/CUT/q;p' $base/architecture/share/boot/grub.cfg \ > $isofsdir/boot/grub/grub.cfg cat >> $isofsdir/boot/grub/grub.cfg <<-EOT # try to switch from HFS w/o symlinks, to is the ISO9660 search --label --set isoroot --no-floppy T2 if [ "\$root" = "\$isoroot,2" ]; then set root="(\$isoroot)" fi EOT } arch_boot_cd_add() { # grub2 - unused $3, verbose name cat >> $isofsdir/boot/grub/grub.cfg <> $isofsdir/etc/kboot.conf < $build_toolchain/isofs_arch.txt <<- EOT BOOT -hfs -part -map $base/architecture/powerpc/boot/mapping -no-desktop BOOTx -hfs-bless $isofsdir/boot -hfs-volid T2 BOOTx -sysid PPC -l -L -r -T -chrp-boot $prepboot DISK1 $isofsdir/ / EOT }