OpenSDE Packages Database (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.

69 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../yaboot/boot/boot.in
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. boot_cd_pre()
  16. {
  17. mkdir -p $isofsdir/{boot,etc}/
  18. cp $build_root/usr/lib/yaboot/yaboot $isofsdir/boot/yaboot
  19. cp $build_root/usr/lib/yaboot/yaboot.rs6k $isofsdir/boot/yaboot.rs6k
  20. # rs6k b50, but does not work, yet:
  21. cp $isofsdir/{boot/yaboot.rs6k,install.bin}
  22. cp -v $base/package/$bootloader/boot/{boot.msg,ofboot.b} \
  23. $isofsdir/boot/
  24. cp -v $base/package/$bootloader/boot/mapping $isofsdir/
  25. # IBM RS/6000
  26. echo "device=cdrom:" > $isofsdir/etc/yaboot.conf
  27. # Apple New World
  28. echo "device=cd:" > $isofsdir/boot/yaboot.conf
  29. echo -e "\nmessage=/boot/boot.msg\n" > $isofsdir/x
  30. }
  31. boot_cd_add()
  32. {
  33. # unused $3, verbose name
  34. cat >> $isofsdir/x <<-EOT
  35. image=$4
  36. label=$2
  37. initrd=$5
  38. initrd-size=8192
  39. EOT
  40. }
  41. boot_cd_post()
  42. {
  43. # footer
  44. cat $isofsdir/x >> $isofsdir/boot/yaboot.conf
  45. cat $isofsdir/x >> $isofsdir/etc/yaboot.conf
  46. rm $isofsdir/x
  47. echo_status "Creating isofs_arch.txt file .."
  48. cat > $build_toolchain/isofs_arch.txt <<- EOT
  49. BOOT -hfs -part -map $isofsdir/mapping -hfs-volid T2
  50. BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot -no-desktop
  51. BOOTx --prep-boot install.bin
  52. DISK1 $isofsdir/boot/ boot/
  53. DISK1 $isofsdir/etc/ etc/
  54. DISK1 $isofsdir/install.bin install.bin
  55. DISK1 $isofsdir/2nd_stage.tar 2nd_stage.tar
  56. DISK1 $isofsdir/2nd_stage_small.tar 2nd_stage_small.tar
  57. EOT
  58. }