summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2015-09-01 21:58:28 +0200
committerMichael Brown2015-09-01 22:04:44 +0200
commitf6e1da5cbf70a372f2b622c8021c98503cab8323 (patch)
tree310d4800cd9d248a81f976a8ce21b1fb4416cb3c /src/util
parent[efi] Populate debug directory entry FileOffset field (diff)
downloadipxe-f6e1da5cbf70a372f2b622c8021c98503cab8323.tar.gz
ipxe-f6e1da5cbf70a372f2b622c8021c98503cab8323.tar.xz
ipxe-f6e1da5cbf70a372f2b622c8021c98503cab8323.zip
[build] Search for ldlinux.c32 separately from isolinux.bin
Some distributions (observed with Ubuntu 15.04) place ldlinux.c32 in a separate directory from isolinux.bin. Search for these files separately, and allow an alternative location of ldlinux.c32 to be provided via LDLINUX_C32=... on the make command line. Reported-by: Adrian Koshka <adriankoshcha@teknik.io> Tested-by: Adrian Koshka <adriankoshcha@teknik.io> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/geniso3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/geniso b/src/util/geniso
index 521c929e..ff090d4a 100755
--- a/src/util/geniso
+++ b/src/util/geniso
@@ -123,8 +123,7 @@ case "${LEGACY}" in
cp ${ISOLINUX_BIN} ${dir}
# syslinux 6.x needs a file called ldlinux.c32
- LDLINUX_C32=$(dirname ${ISOLINUX_BIN})/ldlinux.c32
- if [ -s ${LDLINUX_C32} ]; then
+ if [ -n "${LDLINUX_C32}" -a -s "${LDLINUX_C32}" ]; then
cp ${LDLINUX_C32} ${dir}
fi