mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-02 21:48:20 +03:00
* bump syslinux from 4.04 to 4.05 * add patch to fix build problem with 4.05, see http://old.nabble.com/syslinux-fails-to-build-td34112447.html * add util-linux dependency and make sure the build finds it Signed-off-by: Aras Vaichas <aras.vaichas@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
#############################################################
|
|
#
|
|
# syslinux to make target msdos/iso9660 filesystems bootable
|
|
#
|
|
#############################################################
|
|
|
|
SYSLINUX_VERSION = 4.05
|
|
SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.bz2
|
|
SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/4.xx/
|
|
|
|
SYSLINUX_INSTALL_TARGET = NO
|
|
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
|
|
|
|
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += isolinux.bin
|
|
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += pxelinux.bin
|
|
|
|
define SYSLINUX_INSTALL_IMAGES_CMDS
|
|
for i in $(SYSLINUX_IMAGES-y); do \
|
|
$(INSTALL) -D -m 0755 $(@D)/core/$$i $(BINARIES_DIR)/$$i; \
|
|
done
|
|
endef
|
|
|
|
|
|
define HOST_SYSLINUX_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
|
endef
|
|
|
|
define HOST_SYSLINUX_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) INSTALLROOT=$(HOST_DIR) install
|
|
endef
|
|
|
|
define HOST_SYSLINUX_CLEAN_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) clean
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|
|
$(eval $(call GENTARGETS,host))
|