mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
Currently, we hard-code the path to the images we install, and expect them to be from the core/ sub-dir. Not all images we can install are located in core/. For example, the efi boot images (to come later) are not located in core/. Prepare the upcoming installation of extlinux by not expecting images be in core/. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Lundquist <lists@zelow.no> Cc: Frank Hunleth <fhunleth@troodon-software.com> Tested-by: Frank Hunleth <fhunleth@troodon-software.com> Tested-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# syslinux to make target msdos/iso9660 filesystems bootable
|
|
#
|
|
################################################################################
|
|
|
|
SYSLINUX_VERSION = 4.07
|
|
SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.bz2
|
|
SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/4.xx/
|
|
|
|
SYSLINUX_LICENSE = GPLv2+
|
|
SYSLINUX_LICENSE_FILES = COPYING
|
|
|
|
SYSLINUX_INSTALL_IMAGES = YES
|
|
|
|
SYSLINUX_DEPENDENCIES = host-nasm host-util-linux
|
|
|
|
# syslinux build system has no convenient way to pass CFLAGS,
|
|
# and the internal zlib should take precedence so -I shouldn't
|
|
# be used.
|
|
define SYSLINUX_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(HOSTCC) -idirafter $(HOST_DIR)/usr/include $(HOST_LDFLAGS)" AR="$(HOSTAR)" -C $(@D)
|
|
endef
|
|
|
|
define SYSLINUX_INSTALL_TARGET_CMDS
|
|
# While the actual bootloader is compiled for the target, several
|
|
# utilities for installing the bootloader are meant for the host.
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) INSTALLROOT=$(HOST_DIR) install
|
|
endef
|
|
|
|
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += core/isolinux.bin
|
|
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += core/pxelinux.bin
|
|
|
|
define SYSLINUX_INSTALL_IMAGES_CMDS
|
|
for i in $(SYSLINUX_IMAGES-y); do \
|
|
$(INSTALL) -D -m 0755 $(@D)/$$i $(BINARIES_DIR)/$${i##*/}; \
|
|
done
|
|
endef
|
|
|
|
$(eval $(generic-package))
|