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
|
2008-12-05 16:27:26 +01:00
|
|
|
$(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) \
|
2006-01-10 06:56:59 +01:00
|
|
|
--with-bfd-include-dir=$(BINUTILS_DIR1)/bfd/ \
|
2009-01-28 07:32:39 +01:00
|
|
|
--with-binutils-include-dir=$(BINUTILS_DIR)/include/ \
|
2006-01-10 06:56:59 +01:00
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--with-libbfd=$(BINUTILS_DIR1)/bfd/libbfd.a \
|
|
|
|
--with-libiberty=$(BINUTILS_DIR1)/libiberty/libiberty.a \
|
2009-01-28 07:32:39 +01:00
|
|
|
--prefix=$(STAGING_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
|
2007-12-11 21:21:35 +01:00
|
|
|
ln -snf $(REAL_GNU_TARGET_NAME)-elf2flt $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-elf2flt
|
|
|
|
ln -snf $(REAL_GNU_TARGET_NAME)-flthdr $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-flthdr
|
|
|
|
ln -snf $(REAL_GNU_TARGET_NAME)-ld.real $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-ld.real
|
2006-01-10 06:56:59 +01:00
|
|
|
|
|
|
|
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
|