Merge pull request #5 from glensc/isolinux-build
changes to be able to get *working* isolinux resultpull/13/merge
commit
8f1eb29d85
|
|
@ -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"
|
||||
tar -xf $PKGTGZ
|
||||
rm $PKGTGZ
|
||||
if [ ! -d $PKG ]; then
|
||||
rm -rf $PKG
|
||||
wget --no-check-certificate -c "$DL"
|
||||
tar -xf $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
|
||||
|
|
|
|||
Loading…
Reference in New Issue