2005-06-23 07:09:05 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# syslinux to make target msdos/iso9660 filesystems bootable
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-03-16 21:50:16 +01:00
|
|
|
SYSLINUX_VERSION:=3.85
|
2006-11-15 00:22:15 +01:00
|
|
|
SYSLINUX_DIR=$(BUILD_DIR)/syslinux-$(SYSLINUX_VERSION)
|
|
|
|
SYSLINUX_SOURCE=syslinux-$(SYSLINUX_VERSION).tar.bz2
|
2006-11-17 16:43:51 +01:00
|
|
|
SYSLINUX_CAT:=$(BZCAT)
|
2010-03-16 21:50:16 +01:00
|
|
|
SYSLINUX_SITE=$(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/3.xx/
|
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)
|
|
|
|
|
2010-03-16 21:50:16 +01:00
|
|
|
$(SYSLINUX_DIR)/.unpacked: $(DL_DIR)/$(SYSLINUX_SOURCE) $(SYSLINUX_PATCH)
|
|
|
|
mkdir -p $(@D)
|
|
|
|
$(SYSLINUX_CAT) $(DL_DIR)/$(SYSLINUX_SOURCE) | tar $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(@D) boot/syslinux/ \*.patch
|
2007-02-04 17:34:56 +01:00
|
|
|
touch -c $@
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2010-03-16 21:50:16 +01:00
|
|
|
$(SYSLINUX_DIR)/.compiled: $(SYSLINUX_DIR)/.unpacked
|
|
|
|
$(TARGET_MAKE_ENV) $(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
|
|
|
|
2010-03-16 21:50:16 +01:00
|
|
|
$(BINARIES_DIR)/isolinux.bin: $(SYSLINUX_DIR)/.compiled
|
|
|
|
cp -a $(SYSLINUX_DIR)/core/isolinux.bin $@
|
|
|
|
|
|
|
|
$(BINARIES_DIR)/pxelinux.bin: $(SYSLINUX_DIR)/.compiled
|
|
|
|
cp -a $(SYSLINUX_DIR)/core/pxelinux.bin $@
|
|
|
|
|
2010-05-31 21:08:33 +02:00
|
|
|
syslinux: host-nasm $(BINARIES_DIR)/isolinux.bin
|
|
|
|
pxelinux: host-nasm $(BINARIES_DIR)/pxelinux.bin
|
2005-06-23 07:09:05 +02:00
|
|
|
|
2007-07-08 22:51:19 +02:00
|
|
|
pxelinux-clean syslinux-clean:
|
2010-03-16 21:50:16 +01:00
|
|
|
rm -f $(BINARIES_DIR)/isolinux.bin $(BINARIES_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)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# 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
|