OpenSDE Framework (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: architecture/x86/boot/boot.in
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. arch_boot_cd_pre()
  15. {
  16. mkdir -p $isofsdir/boot/grub
  17. cp -f $build_root/boot/grub/stage{1,2,2_eltorito} $isofsdir/boot/grub/
  18. cp -f $build_root/boot/opensde-grub-splash.xpm.gz $isofsdir/boot/
  19. # header
  20. sed -n '/CUT/q;p' $base/architecture/x86/boot/menu.lst \
  21. > $1/boot/grub/menu.lst
  22. }
  23. arch_boot_cd_add()
  24. {
  25. cat >> $1/boot/grub/menu.lst <<-EOT
  26. title $3 (Kernel: $2)
  27. kernel (cd)$4
  28. initrd (cd)$5
  29. EOT
  30. }
  31. arch_boot_cd_post()
  32. {
  33. # footer
  34. sed '1,/CUT/d' $base/architecture/x86/boot/menu.lst \
  35. >> $1/boot/grub/menu.lst
  36. echo_status "Creating isofs_arch.txt file .."
  37. cat > $build_toolchain/isofs_arch.txt <<- EOT
  38. BOOT -b boot/grub/stage2_eltorito -no-emul-boot
  39. BOOTx -boot-load-size 4 -boot-info-table
  40. DISK1 $isofsdir/ /
  41. EOT
  42. }