|
|
@ -1,51 +0,0 @@ |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: architecture/x86/boot/boot.in |
|
|
|
# Copyright (C) 2006 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. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
arch_boot_cd_pre() |
|
|
|
{ |
|
|
|
mkdir -p $isofsdir/boot/grub |
|
|
|
cp -f $build_root/boot/grub/stage{1,2,2_eltorito} $isofsdir/boot/grub/ |
|
|
|
cp -f $build_root/boot/opensde-grub-splash.xpm.gz $isofsdir/boot/ |
|
|
|
|
|
|
|
# header |
|
|
|
sed -n '/CUT/q;p' $base/architecture/x86/boot/menu.lst \ |
|
|
|
> $1/boot/grub/menu.lst |
|
|
|
} |
|
|
|
|
|
|
|
arch_boot_cd_add() |
|
|
|
{ |
|
|
|
cat >> $1/boot/grub/menu.lst <<-EOT |
|
|
|
|
|
|
|
title $3 (Kernel: $2) |
|
|
|
kernel (cd)$4 |
|
|
|
initrd (cd)$5 |
|
|
|
|
|
|
|
EOT |
|
|
|
} |
|
|
|
|
|
|
|
arch_boot_cd_post() |
|
|
|
{ |
|
|
|
# footer |
|
|
|
sed '1,/CUT/d' $base/architecture/x86/boot/menu.lst \ |
|
|
|
>> $1/boot/grub/menu.lst |
|
|
|
echo_status "Creating isofs_arch.txt file .." |
|
|
|
|
|
|
|
cat > $build_toolchain/isofs_arch.txt <<- EOT |
|
|
|
BOOT -b boot/grub/stage2_eltorito -no-emul-boot |
|
|
|
BOOTx -boot-load-size 4 -boot-info-table |
|
|
|
DISK1 $isofsdir/ / |
|
|
|
EOT |
|
|
|
} |
|
|
|
|