1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/sparc/boot/boot.in
3 # Copyright (C) 2006 - 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 ---
12 if [ "$SDECFG_SPARC_CD_LOADER" = "grub2" ]; then
15 local platform=sparc64-ieee1275
16 mkdir -p $isofsdir/boot/grub
17 cp -af $build_root/usr/lib*/grub/$platform $isofsdir/boot/grub/
18 rm -f $isofsdir/boot/grub/$platform/*.{module,img}
20 dd if=/dev/zero bs=512 count=1 > $isofsdir/../isofs.b
21 cat $build_root/usr/lib*/grub/$platform/cdboot.img >> $isofsdir/../isofs.b
23 grub-mkimage -O $platform-cdcore -p "/boot/grub" \
24 -d $build_root/usr/lib*/grub/$platform \
25 -o $isofsdir/boot/grub/$platform/core.img \
26 --compression auto iso9660 fat part_sun part_msdos part_gpt
29 sed -n '/CUT/q;p' $base/architecture/sparc/boot/grub.cfg \
30 > $1/boot/grub/grub.cfg
34 cat >> $1/boot/grub/grub.cfg <<-EOT
45 sed '1,/CUT/d' $base/architecture/sparc/boot/grub.cfg \
46 >> $1/boot/grub/grub.cfg
47 echo_status "Creating isofs_arch.txt file .."
49 echo "DISK1 $isofsdir/ /" > $build_toolchain/isofs_arch.txt
51 cat >> $build_toolchain/isofs_arch.txt <<- EOT
52 BOOT -G $isofsdir/../isofs.b -B ... --grub2-sparc-core boot/grub/sparc64-ieee1275/core.img
60 mkdir -p $isofsdir/boot
61 cp -f $build_root/bot/isofs.b $isofsdir/..
62 cp -f $build_root/boot/second.b $isofsdir/boot/
63 cp -f $base/architecture/sparc/boot/{silo.conf,boot.msg} \
69 # unused $2, verbose name
70 cat >> $isofsdir/boot/silo.conf <<-EOT
81 echo_status "Creating isofs_arch.txt file .."
83 cat > $build_toolchain/isofs_arch.txt <<- EOT
84 BOOT -G $isofsdir/../isofs.b -B ... -r