kumquat-buildroot/target/x86/syslinux/syslinux.mk

71 lines
1.9 KiB
Makefile
Raw Normal View History

SYSLINUX_SUPPORTED_ARCH=n
ifeq ($(ARCH),i386)
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)
#############################################################
#
# syslinux to make target msdos/iso9660 filesystems bootable
#
#############################################################
SYSLINUX_VERSION:=3.61
2006-11-15 00:22:15 +01:00
SYSLINUX_DIR=$(BUILD_DIR)/syslinux-$(SYSLINUX_VERSION)
SYSLINUX_DIR2=$(TOOL_BUILD_DIR)/syslinux-$(SYSLINUX_VERSION)
SYSLINUX_SOURCE=syslinux-$(SYSLINUX_VERSION).tar.bz2
2006-11-17 16:43:51 +01:00
SYSLINUX_CAT:=$(BZCAT)
2008-11-02 20:21:12 +01:00
SYSLINUX_SITE=$(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/Old
2006-11-15 00:22:15 +01:00
SYSLINUX_BIN=$(SYSLINUX_DIR2)/mtools/syslinux
$(DL_DIR)/$(SYSLINUX_SOURCE):
2009-01-16 12:48:43 +01:00
$(call DOWNLOAD,$(SYSLINUX_SITE),$(SYSLINUX_SOURCE))
syslinux-source: $(DL_DIR)/$(SYSLINUX_SOURCE)
$(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
touch -c $@
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)
touch -c $@
syslinux: $(SYSLINUX_DIR)/isolinux.bin
2007-07-08 22:51:19 +02:00
pxelinux: $(SYSLINUX_DIR)/pxelinux.bin
2007-07-08 22:51:19 +02:00
pxelinux-clean syslinux-clean:
rm -f $(SYSLINUX_DIR)/isolinux.bin $(SYSLINUX_DIR)/pxelinux.bin
-$(MAKE) -C $(SYSLINUX_DIR) clean
2007-07-08 22:51:19 +02:00
pxelinux-dirclean syslinux-dirclean:
rm -rf $(SYSLINUX_DIR)
endif
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_TARGET_SYSLINUX),y)
TARGETS+=syslinux
endif
ifeq ($(BR2_TARGET_PXELINUX),y)
2007-07-08 22:51:19 +02:00
TARGETS+=pxelinux
endif