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.

44 lines
1.2 KiB

  1. disksdir="$build_rock/bootdisk"
  2. if [ "$ROCK_DEBUG_BOOTDISK_NOSTAGE2" != 1 -a \
  3. "$ROCK_DEBUG_BOOTDISK_NOSTAGE1" != 1 ]
  4. then
  5. pkgloop
  6. rm -rf $disksdir; mkdir -p $disksdir; chmod 700 $disksdir
  7. fi
  8. # Re-evaluate CC and other variables (as we have built the cross cc now)
  9. . scripts/parse-config
  10. # Add tools.cross/diet-bin/ to path so we find our 'diet' program
  11. PATH="$base/build/${ROCKCFG_ID}/ROCK/$toolsdir/diet-bin:$PATH"
  12. export DIETHOME="$base/build/${ROCKCFG_ID}/usr/dietlibc"
  13. if [ "$ROCK_DEBUG_BOOTDISK_NOSTAGE2" != 1 ]
  14. then
  15. . $base/target/$target/build_stage2.sh
  16. fi
  17. if [ "$ROCK_DEBUG_BOOTDISK_NOSTAGE1" != 1 ]
  18. then
  19. . $base/target/$target/build_stage1.sh
  20. fi
  21. if [ -f $base/target/$target/$arch/build.sh ]; then
  22. . $base/target/$target/$arch/build.sh
  23. fi
  24. echo_header "Creating ISO filesystem description."
  25. cd $disksdir; rm -rf isofs; mkdir -p isofs
  26. echo_status "Creating bootdisk/isofs directory.."
  27. ln 2nd_stage.tar.gz 2nd_stage_small.tar.gz isofs/
  28. ln *.img initrd.gz isofs/ 2>/dev/null || true # might not exist on some architectures
  29. echo_status "Creating isofs.txt file .."
  30. echo "DISK1 build/${ROCKCFG_ID}/ROCK/bootdisk/isofs/ `
  31. `${ROCKCFG_SHORTID}/" > ../isofs_generic.txt
  32. cat ../isofs_*.txt > ../isofs.txt