aboutsummaryrefslogtreecommitdiff
path: root/boot/syslinux
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-05-02 19:10:37 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-05-03 22:05:06 +0200
commitd98e0457f35300b069fbe5d5115cf20c7e6dd88d (patch)
treedd4b71da391742a02ed44294b32ab57e9aabfbe6 /boot/syslinux
parent6cdb0c4935cebb2d544013f33aa92df430144657 (diff)
downloadbuildroot-d98e0457f35300b069fbe5d5115cf20c7e6dd88d.tar.gz
buildroot-d98e0457f35300b069fbe5d5115cf20c7e6dd88d.tar.bz2
boot/syslinux: add option to install c32 modules
[Peter: reworded comment slightly] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'boot/syslinux')
-rw-r--r--boot/syslinux/Config.in10
-rw-r--r--boot/syslinux/syslinux.mk9
2 files changed, 19 insertions, 0 deletions
diff --git a/boot/syslinux/Config.in b/boot/syslinux/Config.in
index 28c5329ca7..f4b987021f 100644
--- a/boot/syslinux/Config.in
+++ b/boot/syslinux/Config.in
@@ -46,4 +46,14 @@ config BR2_TARGET_SYSLINUX_EFI
endchoice
+if BR2_TARGET_SYSLINUX_LEGACY_BIOS
+
+config BR2_TARGET_SYSLINUX_C32
+ string "modules to install"
+ help
+ Enter a space-separated list of .c32 modules to install.
+ Leave empty to install no module.
+
+endif # BR2_TARGET_SYSLINUX_LEGACY_BIOS
+
endif # BR2_TARGET_SYSLINUX
diff --git a/boot/syslinux/syslinux.mk b/boot/syslinux/syslinux.mk
index 5432d0ac36..c46c7b2177 100644
--- a/boot/syslinux/syslinux.mk
+++ b/boot/syslinux/syslinux.mk
@@ -63,10 +63,19 @@ SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += bios/core/pxelinux.bin
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_MBR) += bios/mbr/mbr.bin
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_EFI) += $(SYSLINUX_EFI_BITS)/efi/syslinux.efi
+SYSLINUX_C32 = $(call qstrip,$(BR2_TARGET_SYSLINUX_C32))
+
+# We install the c32 modules from the host-installed tree, where they
+# are all neatly installed in a single location, while they are
+# scattered around everywhere in the build tree.
define SYSLINUX_INSTALL_IMAGES_CMDS
for i in $(SYSLINUX_IMAGES-y); do \
$(INSTALL) -D -m 0755 $(@D)/$$i $(BINARIES_DIR)/$${i##*/}; \
done
+ for i in $(SYSLINUX_C32); do \
+ $(INSTALL) -D -m 0755 $(HOST_DIR)/usr/share/syslinux/$${i} \
+ $(BINARIES_DIR)/$${i}; \
+ done
endef
$(eval $(generic-package))