2005-06-23 07:09:05 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# syslinux to make target msdos/iso9660 filesystems bootable
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-07-05 22:01:31 +02:00
|
|
|
SYSLINUX_VERSION = 4.05
|
2011-07-05 21:54:04 +02:00
|
|
|
SYSLINUX_SOURCE = syslinux-$(SYSLINUX_VERSION).tar.bz2
|
2012-01-21 22:39:34 +01:00
|
|
|
SYSLINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/boot/syslinux/4.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
|
|
|
|
2012-07-05 22:01:31 +02:00
|
|
|
SYSLINUX_DEPENDENCIES = host-nasm host-util-linux
|
2007-02-04 17:34:56 +01:00
|
|
|
|
2012-07-05 22:01:31 +02:00
|
|
|
# syslinux build system has no convenient way to pass CFLAGS,
|
|
|
|
# and the internal zlib should take precedence so -I shouldn't
|
|
|
|
# be used.
|
2011-07-05 21:54:04 +02:00
|
|
|
define SYSLINUX_BUILD_CMDS
|
2012-07-05 22:01:31 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(HOSTCC) -idirafter $(HOST_DIR)/usr/include $(HOST_LDFLAGS)" AR="$(HOSTAR)" -C $(@D)
|
2011-07-05 21:54:04 +02:00
|
|
|
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
|
|
|
|
2012-01-23 21:19:29 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-generic-package))
|