Merge pull request #5 from glensc/isolinux-build

changes to be able to get *working* isolinux result
pull/13/merge
Tomas-M 2016-07-20 13:12:06 +02:00 committed by GitHub
commit 8f1eb29d85
1 changed files with 13 additions and 5 deletions

View File

@ -2,6 +2,9 @@
# This script will update the file ../bootfiles/isolinux.bin to match
# your LiveKit name used in ../.config
# Requires: wget, tar, gzip, make, gcc, nasm, perl, glibc-devel, libuuid-devel (e2fsprogs)
set -e
PKG=syslinux-4.06
PKGTGZ=$PKG.tar.gz
@ -10,20 +13,25 @@ DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ"
. ../.config
# download, unpack, and patch syslinux
wget -c "$DL"
if [ ! -d $PKG ]; then
rm -rf $PKG
wget --no-check-certificate -c "$DL"
tar -xf $PKGTGZ
rm $PKGTGZ
fi
cd $PKG
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/iso9660/iso9660.c
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/lib/loadconfig.c
make -i
cp core/isolinux.bin ../../bootfiles/isolinux.bin
make \
${CC:+CC="$CC"}
cp -p core/isolinux.bin ../../bootfiles/isolinux.bin
echo
echo "Copying isolinux.bin to $(realpath ../../bootfiles/isolinux.bin)"
cd ..
rm -Rf $PKG
rm -f $PKGTGZ