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.

68 lines
1.9 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: architecture/powerpc/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,etc}/
  17. cp $build_root/usr/lib/yaboot/yaboot $isofsdir/boot/yaboot
  18. cp $build_root/usr/lib/yaboot/yaboot.rs6k $isofsdir/boot/yaboot.rs6k
  19. # rs6k b50, but does not work, yet:
  20. cp $isofsdir/{boot/yaboot.rs6k,install.bin}
  21. cp -v $base/architecture/powerpc/boot/{boot.msg,ofboot.b} \
  22. $isofsdir/boot/
  23. cp -v $base/architecture/powerpc/boot/mapping $isofsdir/
  24. # IBM RS/6000
  25. echo "device=cdrom:" > $isofsdir/etc/yaboot.conf
  26. # Apple New World
  27. echo "device=cd:" > $isofsdir/boot/yaboot.conf
  28. echo -e "\nmessage=/boot/boot.msg\n" > $isofsdir/x
  29. }
  30. arch_boot_cd_add()
  31. {
  32. # unused $3, verbose name
  33. cat >> $isofsdir/x <<-EOT
  34. image=$4
  35. label=$2
  36. initrd=$5
  37. initrd-size=8192
  38. EOT
  39. }
  40. arch_boot_cd_post()
  41. {
  42. # footer
  43. cat $isofsdir/x >> $isofsdir/boot/yaboot.conf
  44. cat $isofsdir/x >> $isofsdir/etc/yaboot.conf
  45. rm $isofsdir/x
  46. echo_status "Creating isofs_arch.txt file .."
  47. cat > $build_toolchain/isofs_arch.txt <<- EOT
  48. BOOT -hfs -part -map $isofsdir/mapping -hfs-volid T2
  49. BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot -no-desktop
  50. BOOTx --prep-boot install.bin
  51. DISK1 $isofsdir/boot/ boot/
  52. DISK1 $isofsdir/etc/ etc/
  53. DISK1 $isofsdir/install.bin install.bin
  54. DISK1 $isofsdir/2nd_stage.tar 2nd_stage.tar
  55. DISK1 $isofsdir/2nd_stage_small.tar 2nd_stage_small.tar
  56. EOT
  57. }