1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/powerpc/boot/boot.in
3 # Copyright (C) 2005 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 # before r45543 vintage yaboot glue was here
15 grubdir="$(sed -n "/lib.*mod$/ {s,grub2: \(.*\)/[^/]*,\1,p ; q}" \
16 $build_root/var/adm/flists/grub2)"
17 grubarch="${grubdir##*/}"
18 mkdir -p $isofsdir/{boot/grub,etc,ppc}/
20 cp -v $base/architecture/powerpc/boot/{ofboot.b,boot.msg} $isofsdir/boot/
21 cp -v $base/architecture/powerpc/boot/bootinfo.txt $isofsdir/ppc/
23 if [ "$SDECFG_POWERPC64_ENDIANESS" != 'le' ]; then
24 cp -af $build_root/usr/lib*/grub/* $isofsdir/boot/grub/
25 rm -f $isofsdir/boot/grub/*/*.{module,img} # not needed in the image
27 grub-mkimage -O powerpc-ieee1275 -p /boot/grub -o $isofsdir/boot/grub.elf \
28 -d $build_root/$grubdir/ \
29 part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 iso9660 \
30 boot configfile linux btrfs all_video reiserfs xfs jfs lvm \
31 normal crypto cryptodisk luks part_apple suspend sleep reboot \
32 search_fs_file search_label search_fs_uuid hfs
34 # rs6k b50, but may not work, yet:
35 cp $isofsdir/{boot/grub.elf,install.bin}
37 touch $isofsdir/boot/grub.elf
40 cat > $isofsdir/boot/grub/grub.cfg <<EOT
47 # grub2 - unused $3, verbose name
48 cat >> $isofsdir/boot/grub/grub.cfg <<EOT
56 # kboot, e.g. petitboot - unused $3, verbose name
57 cat >> $isofsdir/etc/kboot.conf <<EOT
59 install='$4 initrd=$5' # video=ps3fb:mode:13
65 echo_status "Creating isofs_arch.txt file .."
67 cat > $build_toolchain/isofs_arch.txt <<- EOT
68 BOOT -hfs -part -map $base/architecture/powerpc/boot/mapping -no-desktop
69 BOOTx -hfs-bless $isofsdir/boot -hfs-volid T2
70 BOOTx -sysid PPC -l -L -r -T -chrp-boot --prep-boot boot/grub.elf