2006-11-28 11:01:46 +01:00
|
|
|
SYSLINUX_SUPPORTED_ARCH=n
|
2005-06-23 07:09:05 +02:00
|
|
|
ifeq ($(ARCH),i386)
|
2006-11-28 11:01:46 +01:00
|
|
|
SYSLINUX_SUPPORTED_ARCH=y
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),i486)
|
|
|
|
SYSLINUX_SUPPORTED_ARCH=y
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),i586)
|
|
|
|
SYSLINUX_SUPPORTED_ARCH=y
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),i686)
|
|
|
|
SYSLINUX_SUPPORTED_ARCH=y
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
|
|
SYSLINUX_SUPPORTED_ARCH=y
|
|
|
|
endif
|
|
|
|
ifeq ($(SYSLINUX_SUPPORTED_ARCH),y)
|
|
|
|
|
2005-06-23 07:09:05 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# syslinux to make target msdos/iso9660 filesystems bootable
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-09-21 10:14:55 +02:00
|
|
|
SYSLINUX_VERSION:=3.82
|
2006-11-15 00:22:15 +01:00
|
|
|
SYSLINUX_DIR=$(BUILD_DIR)/syslinux-$(SYSLINUX_VERSION)
|
2009-09-23 01:30:00 +02:00
|
|
|
SYSLINUX_DIR2=$(TOOLCHAIN_DIR)/syslinux-$(SYSLINUX_VERSION)
|
2006-11-15 00:22:15 +01:00
|
|
|
SYSLINUX_SOURCE=syslinux-$(SYSLINUX_VERSION).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
SYSLINUX_CAT:=$(BZCAT)
|
2009-09-21 10:14:55 +02:00
|
|
|
SYSLINUX_SITE=$(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/
|
2006-11-15 00:22:15 +01:00
|
|
|
SYSLINUX_BIN=$(SYSLINUX_DIR2)/mtools/syslinux
|
|
|
|
|
2005-06-23 07:09:05 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(SYSLINUX_SOURCE):
|
2009-01-16 12:48:43 +01:00
|
|
|
$(call DOWNLOAD,$(SYSLINUX_SITE),$(SYSLINUX_SOURCE))
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2007-02-04 17:34:56 +01:00
|
|
|
syslinux-source: $(DL_DIR)/$(SYSLINUX_SOURCE)
|
|
|
|
|
2005-06-23 07:09:05 +02:00
|
|
|
$(SYSLINUX_DIR)/Makefile: $(DL_DIR)/$(SYSLINUX_SOURCE) $(SYSLINUX_PATCH)
|
2007-07-08 22:51:19 +02:00
|
|
|
$(SYSLINUX_CAT) $(DL_DIR)/$(SYSLINUX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2006-11-15 00:22:15 +01:00
|
|
|
toolchain/patch-kernel.sh $(SYSLINUX_DIR) target/x86/syslinux/ \*.patch
|
2007-02-04 17:34:56 +01:00
|
|
|
touch -c $@
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2007-07-08 22:51:19 +02:00
|
|
|
$(SYSLINUX_DIR)/isolinux.bin $(SYSLINUX_DIR)/pxelinux.bin: $(SYSLINUX_DIR)/Makefile
|
|
|
|
$(MAKE) CC="$(HOSTCC)" AR="$(HOSTAR)" -C $(SYSLINUX_DIR)
|
2007-02-04 17:34:56 +01:00
|
|
|
touch -c $@
|
2005-06-23 07:09:05 +02:00
|
|
|
|
|
|
|
syslinux: $(SYSLINUX_DIR)/isolinux.bin
|
2007-07-08 22:51:19 +02:00
|
|
|
pxelinux: $(SYSLINUX_DIR)/pxelinux.bin
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2007-07-08 22:51:19 +02:00
|
|
|
pxelinux-clean syslinux-clean:
|
|
|
|
rm -f $(SYSLINUX_DIR)/isolinux.bin $(SYSLINUX_DIR)/pxelinux.bin
|
2007-01-21 22:32:49 +01:00
|
|
|
-$(MAKE) -C $(SYSLINUX_DIR) clean
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2007-07-08 22:51:19 +02:00
|
|
|
pxelinux-dirclean syslinux-dirclean:
|
2005-06-23 07:09:05 +02:00
|
|
|
rm -rf $(SYSLINUX_DIR)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# 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
|
2008-12-08 09:15:58 +01:00
|
|
|
ifeq ($(BR2_TARGET_PXELINUX),y)
|
2007-07-08 22:51:19 +02:00
|
|
|
TARGETS+=pxelinux
|
|
|
|
endif
|