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.1 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. if [ "$ROCK_DEBUG_BOOTDISK_NOSTAGE2" != 1 ]
  13. then
  14. . $base/target/$target/build_stage2.sh
  15. fi
  16. if [ "$ROCK_DEBUG_BOOTDISK_NOSTAGE1" != 1 ]
  17. then
  18. . $base/target/$target/build_stage1.sh
  19. fi
  20. if [ -f $base/target/$target/$arch/build.sh ]; then
  21. . $base/target/$target/$arch/build.sh
  22. fi
  23. echo_header "Creating ISO filesystem description."
  24. cd $disksdir; rm -rf isofs; mkdir -p isofs
  25. echo_status "Creating bootdisk/isofs directory.."
  26. ln 2nd_stage.tar.gz 2nd_stage_small.tar.gz isofs/
  27. ln *.img initrd.gz isofs/ 2>/dev/null || true # might not exist on some architectures
  28. echo_status "Creating isofs.txt file .."
  29. echo "DISK1 build/${ROCKCFG_ID}/ROCK/bootdisk/isofs/ `
  30. `${ROCKCFG_SHORTID}/" > ../isofs_generic.txt
  31. cat ../isofs_*.txt > ../isofs.txt