mirror of the now-defunct rocklinux.org
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
2.6 KiB

  1. #!/bin/bash
  2. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  3. #
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. # Please add additional copyright information _after_ the line containing
  6. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  7. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  8. #
  9. # ROCK Linux: rock-src/target/lvp/x86/build.sh
  10. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version. A copy of the GNU General Public
  16. # License can be found at Documentation/COPYING.
  17. #
  18. # Many people helped and are helping developing ROCK Linux. Please
  19. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  20. # file for details.
  21. #
  22. # --- ROCK-COPYRIGHT-NOTE-END ---
  23. echo_status "Copying release_skeleton files"
  24. cd ${releasedir}
  25. cp -r ${base}/target/${target}/${arch}/release_skeleton/* .
  26. unset opt_text
  27. case "${ROCKCFG_X86_OPT}" in
  28. generic) opt_text="for all x86 machines";;
  29. i386) opt_text="for Intel 386";;
  30. i486) opt_text="for Intel 486";;
  31. via-c3) opt_text="for VIA CyrixIII/VIA-C3";;
  32. via-c3-2) opt_text="for VIA-C3-2 Nemiah";;
  33. pentium) opt_text="for Intel Pentium";;
  34. pentium-mmx) opt_text="for Intel Pentium with MMX";;
  35. pentiumpro) opt_text="for Intel Pentium-Pro";;
  36. pentium2) opt_text="for Intel Pentium 2";;
  37. pentium3) opt_text="for Intel Pentium 3";;
  38. pentium4) opt_text="for Intel Pentium 4";;
  39. k6) opt_text="for AMD K6";;
  40. k6-2) opt_text="for AMD K6-2";;
  41. k6-3) opt_text="for AMD K6-3";;
  42. athlon) opt_text="for AMD Athlon";;
  43. athlon-tbird) opt_text="for AMD Athlon Thunderbird";;
  44. athlon4) opt_text="for AMD Athlon 4";;
  45. athlon-xp) opt_text="for AMD Athlon XP";;
  46. athlon-mp) opt_text="for AMD Athlon MP" ;;
  47. *) opt_text="for unknown optimisation" ;;
  48. esac
  49. sed -i -e "s,COMPILEDFOR,${opt_text},g" README
  50. echo "LVP Version ${lvp_ver}" > VERSION
  51. find ${releasedir} -name .svn -exec rm -rf {} \; 2>/dev/null
  52. echo_status "Extracting isolinux boot loader."
  53. mkdir -p isolinux
  54. tar --use-compress-program=bzip2 \
  55. -O -xf ${base}/download/mirror/s/syslinux-${syslinux_ver}.tar.bz2 \
  56. syslinux-${syslinux_ver}/isolinux.bin > ${releasedir}/isolinux/isolinux.bin
  57. echo_status "Creating isolinux config file."
  58. cp ${base}/target/${target}/x86/isolinux.cfg ${releasedir}/isolinux/
  59. cp ${base}/target/${target}/x86/help?.txt ${releasedir}/isolinux/
  60. cp ${rootdir}/boot/vmlinuz ${releasedir}/isolinux/