2005-06-23 07:09:05 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# syslinux to make target msdos/iso9660 filesystems bootable
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
SYSLINUX_VERSION = 3.85
|
|
|
|
SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.bz2
|
|
|
|
SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/3.xx/
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
SYSLINUX_INSTALL_TARGET = NO
|
|
|
|
SYSLINUX_INSTALL_IMAGES = YES
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
SYSLINUX_DEPENDENCIES = host-nasm
|
2007-02-04 17:34:56 +01:00
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
define SYSLINUX_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(HOSTCC)" AR="$(HOSTAR)" -C $(@D)
|
|
|
|
endef
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += isolinux.bin
|
|
|
|
SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += pxelinux.bin
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
define SYSLINUX_INSTALL_IMAGES_CMDS
|
|
|
|
for i in $(SYSLINUX_IMAGES-y); do \
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/core/$$i $(BINARIES_DIR)/$$i; \
|
|
|
|
done
|
|
|
|
endef
|
2010-03-16 21:50:16 +01:00
|
|
|
|
2011-07-05 21:54:04 +02:00
|
|
|
$(eval $(call GENTARGETS,boot,syslinux))
|
2005-06-23 07:09:05 +02:00
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:58 +01:00
|
|
|
ifeq ($(BR2_TARGET_SYSLINUX),y)
|
2005-06-23 07:09:05 +02:00
|
|
|
TARGETS+=syslinux
|
|
|
|
endif
|