2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2013-06-30 21:28:57 +02:00
|
|
|
#
|
|
|
|
# elf2flt
|
|
|
|
#
|
2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2013-06-30 21:28:57 +02:00
|
|
|
|
2017-05-28 13:09:52 +02:00
|
|
|
ELF2FLT_VERSION = 6d80ab6c93409e796f85da404bde84b841231531
|
2016-04-15 23:02:17 +02:00
|
|
|
ELF2FLT_SITE = $(call github,uclinux-dev,elf2flt,$(ELF2FLT_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
ELF2FLT_LICENSE = GPL-2.0+
|
2013-06-30 21:28:57 +02:00
|
|
|
ELF2FLT_LICENSE_FILES = LICENSE.TXT
|
|
|
|
|
|
|
|
HOST_ELF2FLT_DEPENDENCIES = host-binutils host-zlib
|
|
|
|
|
|
|
|
# It is not exactly a host variant, but more a cross variant, which is
|
|
|
|
# why we pass a special --target option.
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_ELF2FLT_CONF_OPTS = \
|
2013-06-30 21:28:57 +02:00
|
|
|
--with-bfd-include-dir=$(HOST_BINUTILS_DIR)/bfd/ \
|
|
|
|
--with-binutils-include-dir=$(HOST_BINUTILS_DIR)/include/ \
|
|
|
|
--with-libbfd=$(HOST_BINUTILS_DIR)/bfd/libbfd.a \
|
|
|
|
--with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \
|
2016-04-15 23:02:17 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--disable-werror
|
2013-06-30 21:28:57 +02:00
|
|
|
|
2015-09-06 17:48:19 +02:00
|
|
|
HOST_ELF2FLT_LIBS = -lz
|
|
|
|
|
|
|
|
ifeq ($(BR2_GCC_ENABLE_LTO),y)
|
|
|
|
HOST_ELF2FLT_LIBS += -ldl
|
|
|
|
endif
|
|
|
|
|
|
|
|
HOST_ELF2FLT_CONF_ENV = LIBS="$(HOST_ELF2FLT_LIBS)"
|
2013-07-08 08:14:53 +02:00
|
|
|
|
2013-06-30 21:28:57 +02:00
|
|
|
$(eval $(host-autotools-package))
|