mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 14:03:29 +08:00
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>
This commit is contained in:
parent
6cdb0c4935
commit
d98e0457f3
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user