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
|
# This script will update the file ../bootfiles/isolinux.bin to match
|
||||||
# your LiveKit name used in ../.config
|
# 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
|
PKG=syslinux-4.06
|
||||||
PKGTGZ=$PKG.tar.gz
|
PKGTGZ=$PKG.tar.gz
|
||||||
|
|
@ -10,20 +13,25 @@ DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ"
|
||||||
. ../.config
|
. ../.config
|
||||||
|
|
||||||
# download, unpack, and patch syslinux
|
# download, unpack, and patch syslinux
|
||||||
wget -c "$DL"
|
if [ ! -d $PKG ]; then
|
||||||
tar -xf $PKGTGZ
|
rm -rf $PKG
|
||||||
rm $PKGTGZ
|
wget --no-check-certificate -c "$DL"
|
||||||
|
tar -xf $PKGTGZ
|
||||||
|
fi
|
||||||
|
|
||||||
cd $PKG
|
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/iso9660/iso9660.c
|
||||||
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/lib/loadconfig.c
|
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/lib/loadconfig.c
|
||||||
|
|
||||||
make -i
|
make \
|
||||||
cp core/isolinux.bin ../../bootfiles/isolinux.bin
|
${CC:+CC="$CC"}
|
||||||
|
|
||||||
|
cp -p core/isolinux.bin ../../bootfiles/isolinux.bin
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Copying isolinux.bin to $(realpath ../../bootfiles/isolinux.bin)"
|
echo "Copying isolinux.bin to $(realpath ../../bootfiles/isolinux.bin)"
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -Rf $PKG
|
rm -Rf $PKG
|
||||||
|
rm -f $PKGTGZ
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue