1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/ia64/boot/boot.in
3 # Copyright (C) 2007 - 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 . $base/architecture/share/boot/grub.in
16 local platform=ia64-efi
17 local exe=bootia64.efi
18 mkdir -p $isofsdir/boot/grub
19 cp -af $build_root/usr/lib*/grub/* $isofsdir/boot/grub/
20 rm -f $isofsdir/boot/grub/*/*.{module,img} # not needed in the image
22 mkdir -p $isofsdir/efi/boot/
23 grub-mkimage -O $platform -p "/boot/grub" \
24 -d $build_root/usr/lib*/grub/$platform \
25 -o $isofsdir/efi/boot/$exe \
26 --compression auto iso9660 fat part_msdos part_gpt
28 grub_create_efi_img $isofsdir/efi/boot/$exe
31 sed -n '/CUT/q;p' $base/architecture/ia64/boot/grub.cfg \
32 > $1/boot/grub/grub.cfg
37 cat >> $1/boot/grub/grub.cfg <<-EOT
49 sed '1,/CUT/d' $base/architecture/ia64/boot/grub.cfg \
50 >> $1/boot/grub/grub.cfg
51 echo_status "Creating isofs_arch.txt file .."
53 echo "DISK1 $isofsdir/ /" > $build_toolchain/isofs_arch.txt
55 cat >> $build_toolchain/isofs_arch.txt <<- EOT
58 grub_create_boot_entry >> $build_toolchain/isofs_arch.txt