diff options
author | Christian Hesse <mail@eworm.de> | 2013-11-13 11:46:02 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-15 11:59:44 +0000 |
commit | 3f9a482b88d75081efb660e937e9631bbbf54c49 (patch) | |
tree | aab9e595353da9f261a436f2a421cf895b6aec50 /src/util | |
parent | 2fa34085e28992dd7409496709af822776bd8fc6 (diff) | |
download | ipxe-3f9a482b88d75081efb660e937e9631bbbf54c49.tar.gz |
[build] Update build system for Syslinux 6.x
Syslinux 6.x places its files into a bios subdirectory, and requires
that a ldlinux.c32 module be included within the ISO image. Add the
relevant search paths for isolinux.bin, and include the file
ldlinux.c32 within the ISO image if it exists.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-x | src/util/geniso | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/geniso b/src/util/geniso index 48ea2f2a..4dc72192 100755 --- a/src/util/geniso +++ b/src/util/geniso @@ -38,6 +38,14 @@ shift dir=`mktemp -d bin/iso.dir.XXXXXX` cfg=$dir/isolinux.cfg cp -p $isolinux_bin $dir + +# syslinux 6.x needs a file called ldlinux.c32 +ldlinux_c32=$(dirname ${isolinux_bin})/ldlinux.c32 +if [ -s ${ldlinux_c32} ] +then + cp -p ${ldlinux_c32} ${dir} +fi + cat > $cfg <<EOF # These default options can be changed in the geniso script SAY iPXE ISO boot image |