Skip to content

Commit

Permalink
[build] Update build system for Syslinux 6.x
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eworm-de authored and mcb30 committed Nov 15, 2013
1 parent 2fa3408 commit 3f9a482
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/arch/i386/Makefile
Expand Up @@ -74,8 +74,11 @@ CFLAGS += -Ui386
ISOLINUX_BIN_LIST := \
$(ISOLINUX_BIN) \
/usr/lib/syslinux/isolinux.bin \
/usr/lib/syslinux/bios/isolinux.bin \
/usr/share/syslinux/isolinux.bin \
/usr/local/share/syslinux/isolinux.bin
/usr/share/syslinux/bios/isolinux.bin \
/usr/local/share/syslinux/isolinux.bin \
/usr/local/share/syslinux/bios/isolinux.bin
ISOLINUX_BIN = $(firstword $(wildcard $(ISOLINUX_BIN_LIST)))

# i386-specific directories containing source files
Expand Down
8 changes: 8 additions & 0 deletions src/util/geniso
Expand Up @@ -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
Expand Down

0 comments on commit 3f9a482

Please sign in to comment.