]> git.hungrycats.org Git - linux/commitdiff
x86, build: copy ldlinux.c32 to image.iso
authorH. Peter Anvin <hpa@zytor.com>
Wed, 6 Apr 2016 00:01:33 +0000 (17:01 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 20 Jun 2016 03:47:45 +0000 (23:47 -0400)
[ Upstream commit 9c77679cadb118c0aa99e6f88533d91765a131ba ]

For newer versions of Syslinux, we need ldlinux.c32 in addition to
isolinux.bin to reside on the boot disk, so if the latter is found,
copy it, too, to the isoimage tree.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Linux Stable Tree <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/boot/Makefile

index 3db07f30636fe40c4cfea973abb08af8adc3c13c..32342a6034df38ecec63d863ae661427a8bcdb06 100644 (file)
@@ -160,6 +160,9 @@ isoimage: $(obj)/bzImage
        for i in lib lib64 share end ; do \
                if [ -f /usr/$$i/syslinux/isolinux.bin ] ; then \
                        cp /usr/$$i/syslinux/isolinux.bin $(obj)/isoimage ; \
+                       if [ -f /usr/$$i/syslinux/ldlinux.c32 ]; then \
+                               cp /usr/$$i/syslinux/ldlinux.c32 $(obj)/isoimage ; \
+                       fi ; \
                        break ; \
                fi ; \
                if [ $$i = end ] ; then exit 1 ; fi ; \