mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 19:49:45 +03:00
[build] Report a meaningful error message if isolinux.bin is missing
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -105,9 +105,11 @@ copy_syslinux_file() {
|
|||||||
; do
|
; do
|
||||||
if [ -e "${SRCDIR}/${FILENAME}" ] ; then
|
if [ -e "${SRCDIR}/${FILENAME}" ] ; then
|
||||||
cp "${SRCDIR}/${FILENAME}" "${DESTDIR}/"
|
cp "${SRCDIR}/${FILENAME}" "${DESTDIR}/"
|
||||||
break
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "${0}: could not find ${FILENAME}" >&2
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parse command-line options
|
# Parse command-line options
|
||||||
@@ -225,7 +227,7 @@ done
|
|||||||
if [ -n "${ISOIMG}" ] ; then
|
if [ -n "${ISOIMG}" ] ; then
|
||||||
ISOARGS="-J -R"
|
ISOARGS="-J -R"
|
||||||
copy_syslinux_file "isolinux.bin" "${ISODIR}"
|
copy_syslinux_file "isolinux.bin" "${ISODIR}"
|
||||||
copy_syslinux_file "ldlinux.c32" "${ISODIR}" || true
|
copy_syslinux_file "ldlinux.c32" "${ISODIR}" 2>/dev/null || true
|
||||||
ISOARGS="${ISOARGS} -no-emul-boot -eltorito-boot isolinux.bin"
|
ISOARGS="${ISOARGS} -no-emul-boot -eltorito-boot isolinux.bin"
|
||||||
ISOARGS="${ISOARGS} -boot-load-size 4 -boot-info-table"
|
ISOARGS="${ISOARGS} -boot-load-size 4 -boot-info-table"
|
||||||
if [ -n "${EFI}" ] ; then
|
if [ -n "${EFI}" ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user