# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: architecture/alpha/boot/boot.in # Copyright (C) 2007 - 2024 The T2 SDE Project # # 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 as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- arch_boot_cd_pre() { alpha_idx=0 mkdir -p $isofsdir/{boot,etc} cp -af $build_root/boot/bootlx $isofsdir/boot/ } arch_boot_cd_add() { # only include the compressed file [ -e $isofsdir$4 ] && rm $isofsdir$4 cp -f $build_root/$4 $isofsdir/boot/ cat >> $1/etc/aboot.conf <<-EOT $alpha_idx:$4.gz initrd=$5 EOT : $((alpha_idx++)) } arch_boot_cd_post() { # footer sed '1,/CUT/d' $base/architecture/alpha/boot/aboot.conf \ >> $1/etc/aboot.conf echo_status "Creating isofs_arch.txt file .." echo "DISK1 $isofsdir/ /" > $build_toolchain/isofs_arch.txt cat >> $build_toolchain/isofs_arch.txt <<- EOT BOOT -alpha-boot boot/bootlx EOT }