Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 47 lines (39 sloc) 1.21 KB
#!/bin/sh
. config/options
$SCRIPTS/checkdeps build || exit 1
rm -rf $BUILD/iso
mkdir -p $BUILD/iso
export INSTALL=$BUILD/iso
$SCRIPTS/image "$1"
$SCRIPTS/installdev xorriso
case $TARGET_ARCH in
i386|x86_64)
MKISOFS_ARCH="-no-emul-boot \
-boot-info-table \
-boot-load-size 4 \
-b isolinux/isolinux.bin \
-c isolinux/boot.catalog \
-isohybrid-mbr $ROOT/$TOOLCHAIN/share/syslinux/isohdpfx.bin \
-partition_offset 16 \
-eltorito-alt-boot \
-no-emul-boot"
;;
powerpc|powerpc64)
MKISOFS_ARCH="-hfs \
-part \
-no-desktop \
-map $CONFIG/maps \
-hfs-volid $DISTRONAME_UC \
-hfs-bless $BUILD/iso/$DISTRODIR/boot"
;;
esac
mkdir -p $BINROOT
$ROOT/$TOOLCHAIN/bin/xorriso \
-as mkisofs \
-quiet -no-pad -V $DISTRONAME_UC -volset $DISTRONAME_UC \
-publisher "The GeeXboX team (www.geexbox.org)" \
-p "The GeeXboX team (www.geexbox.org)" \
-A "MKISOFS ISO 9660/HFS FILESYSTEM BUILDER" \
-z -D -r -J $MKISOFS_ARCH \
$BUILD/iso > $ISO
exit 0