2006-01-10 06:56:59 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# elf2flt
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
# we keep a local checkout of uClinux CVS
|
|
|
|
ELF2FLT_SOURCE:=$(ELF2FLT_DIR)/elf2flt
|
2009-09-23 01:30:00 +02:00
|
|
|
ELF2FLT_DIR:=$(TOOLCHAIN_DIR)/elf2flt
|
2006-01-10 06:56:59 +01:00
|
|
|
ELF2FLT_BINARY:=elf2flt
|
|
|
|
|
|
|
|
$(ELF2FLT_DIR)/.unpacked:
|
2009-09-23 01:30:00 +02:00
|
|
|
cp -r toolchain/elf2flt/elf2flt "$(TOOLCHAIN_DIR)/elf2flt"
|
2007-08-21 12:40:18 +02:00
|
|
|
touch $@
|
2006-01-10 06:56:59 +01:00
|
|
|
|
|
|
|
$(ELF2FLT_DIR)/.patched: $(ELF2FLT_DIR)/.unpacked
|
2011-08-31 23:35:06 +02:00
|
|
|
$(call CONFIG_UPDATE,$(@D))
|
2007-08-21 12:40:18 +02:00
|
|
|
touch $@
|
2006-01-10 06:56:59 +01:00
|
|
|
|
|
|
|
$(ELF2FLT_DIR)/.configured: $(ELF2FLT_DIR)/.patched
|
|
|
|
(cd $(ELF2FLT_DIR); rm -rf config.cache; \
|
2009-01-28 07:32:33 +01:00
|
|
|
LDFLAGS=-lz \
|
2009-10-01 21:24:42 +02:00
|
|
|
$(ELF2FLT_DIR)/configure $(QUIET) \
|
2012-03-18 16:35:58 +01:00
|
|
|
--with-bfd-include-dir=$(HOST_BINUTILS_DIR)/bfd/ \
|
|
|
|
--with-binutils-include-dir=$(HOST_BINUTILS_DIR)/include/ \
|
2012-06-08 03:52:16 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2012-03-18 16:35:58 +01:00
|
|
|
--with-libbfd=$(HOST_BINUTILS_DIR)/bfd/libbfd.a \
|
|
|
|
--with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \
|
|
|
|
--prefix=$(HOST_DIR)/usr)
|
2007-08-21 12:40:18 +02:00
|
|
|
touch $@
|
2006-01-10 06:56:59 +01:00
|
|
|
|
|
|
|
$(ELF2FLT_DIR)/$(ELF2FLT_BINARY): $(ELF2FLT_DIR)/.configured
|
|
|
|
$(MAKE) -C $(ELF2FLT_DIR) all
|
|
|
|
$(MAKE) -C $(ELF2FLT_DIR) install
|
|
|
|
|
|
|
|
elf2flt: uclibc_target uclibc-configured binutils gcc $(ELF2FLT_DIR)/$(ELF2FLT_BINARY)
|
|
|
|
|
|
|
|
elf2flt-clean:
|
|
|
|
rm -rf $(ELF2FLT_SOURCE)
|
|
|
|
|
|
|
|
elf2flt-dirclean:
|
|
|
|
rm -rf $(ELF2FLT_SOURCE)
|
|
|
|
|
2008-12-08 09:15:42 +01:00
|
|
|
ifeq ($(BR2_ELF2FLT),y)
|
2006-01-10 06:56:59 +01:00
|
|
|
TARGETS+=elf2flt
|
|
|
|
endif
|