]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
elf2flt: convert to the package infrastructure
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Jun 2013 19:28:57 +0000 (21:28 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 3 Jul 2013 20:09:12 +0000 (22:09 +0200)
[Peter: Correct legacy position]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
25 files changed:
Config.in.legacy
package/elf2flt/Config.in.host [moved from toolchain/elf2flt/Config.in with 91% similarity]
package/elf2flt/elf2flt.mk [new file with mode: 0644]
package/elf2flt/src/LICENSE.TXT [moved from toolchain/elf2flt/elf2flt/LICENSE.TXT with 100% similarity]
package/elf2flt/src/Makefile.in [moved from toolchain/elf2flt/elf2flt/Makefile.in with 100% similarity]
package/elf2flt/src/README [moved from toolchain/elf2flt/elf2flt/README with 100% similarity]
package/elf2flt/src/config.guess [moved from toolchain/elf2flt/elf2flt/config.guess with 100% similarity]
package/elf2flt/src/config.sub [moved from toolchain/elf2flt/elf2flt/config.sub with 100% similarity]
package/elf2flt/src/configure [moved from toolchain/elf2flt/elf2flt/configure with 100% similarity]
package/elf2flt/src/configure.in [moved from toolchain/elf2flt/elf2flt/configure.in with 100% similarity]
package/elf2flt/src/cygwin-elf.h [moved from toolchain/elf2flt/elf2flt/cygwin-elf.h with 100% similarity]
package/elf2flt/src/e1-elf2flt.ld [moved from toolchain/elf2flt/elf2flt/e1-elf2flt.ld with 100% similarity]
package/elf2flt/src/elf2flt.c [moved from toolchain/elf2flt/elf2flt/elf2flt.c with 100% similarity]
package/elf2flt/src/elf2flt.ld [moved from toolchain/elf2flt/elf2flt/elf2flt.ld with 100% similarity]
package/elf2flt/src/flat.h [moved from toolchain/elf2flt/elf2flt/flat.h with 100% similarity]
package/elf2flt/src/flthdr.c [moved from toolchain/elf2flt/elf2flt/flthdr.c with 100% similarity]
package/elf2flt/src/install-sh [moved from toolchain/elf2flt/elf2flt/install-sh with 100% similarity]
package/elf2flt/src/ld-elf2flt.in [moved from toolchain/elf2flt/elf2flt/ld-elf2flt.in with 100% similarity]
package/elf2flt/src/maketarball.sh [moved from toolchain/elf2flt/elf2flt/maketarball.sh with 100% similarity]
package/elf2flt/src/stubs.c [moved from toolchain/elf2flt/elf2flt/stubs.c with 100% similarity]
toolchain/elf2flt/elf2flt.mk [deleted file]
toolchain/toolchain-buildroot.mk
toolchain/toolchain-buildroot/Config.in.2
toolchain/toolchain-crosstool-ng.mk
toolchain/toolchain-external.mk

index 921a0eb955da8caae5b7c676907bb16098995b82..01bf90063e5af2e52a82e0929305eb921579d9ea 100644 (file)
@@ -68,6 +68,14 @@ config BR2_PACKAGE_DOSFSTOOLS_MKDOSFS
        help
          mkdosfs was renamed upstream to mkfs.fat for consistency.
 
+config BR2_ELF2FLT
+       bool "the elf2flt option has been renamed"
+       select BR2_LEGACY
+       help
+         The BR2_ELF2FLT option has been renamed to
+         BR2_PACKAGE_HOST_ELF2FLT due to the conversion of elf2flt to
+         the package infrastructure.
+
 ###############################################################################
 comment "Legacy options removed in 2013.05"
 
similarity index 91%
rename from toolchain/elf2flt/Config.in
rename to package/elf2flt/Config.in.host
index b4e450a646d1a699dedb04098526e6a77977d9d0..31a6c7fc066887c066d6b2f05ebe051c1f2e5120 100644 (file)
@@ -1,4 +1,4 @@
-config BR2_ELF2FLT
+config BR2_PACKAGE_HOST_ELF2FLT
        bool "Enable elf2flt support?"
        depends on BR2_arm || BR2_sh || BR2_sparc
        help
diff --git a/package/elf2flt/elf2flt.mk b/package/elf2flt/elf2flt.mk
new file mode 100644 (file)
index 0000000..5afa5ca
--- /dev/null
@@ -0,0 +1,28 @@
+#############################################################
+#
+# elf2flt
+#
+#############################################################
+
+ELF2FLT_SOURCE =
+HOST_ELF2FLT_SOURCE =
+ELF2FLT_VERSION = cvs
+ELF2FLT_LICENSE = GPLv2+
+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.
+HOST_ELF2FLT_CONF_OPT = \
+       --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 \
+       --target=$(GNU_TARGET_NAME)
+
+define HOST_ELF2FLT_EXTRACT_CMDS
+       cp -r package/elf2flt/src/* $(@D)
+endef
+
+$(eval $(host-autotools-package))
diff --git a/toolchain/elf2flt/elf2flt.mk b/toolchain/elf2flt/elf2flt.mk
deleted file mode 100644 (file)
index 1462227..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-################################################################################
-#
-# elf2flt
-#
-################################################################################
-
-# we keep a local checkout of uClinux CVS
-ELF2FLT_SOURCE:=$(ELF2FLT_DIR)/elf2flt
-ELF2FLT_DIR:=$(TOOLCHAIN_DIR)/elf2flt
-ELF2FLT_BINARY:=elf2flt
-
-$(ELF2FLT_DIR)/.unpacked:
-       cp -r toolchain/elf2flt/elf2flt "$(TOOLCHAIN_DIR)/elf2flt"
-       touch $@
-
-$(ELF2FLT_DIR)/.patched: $(ELF2FLT_DIR)/.unpacked
-       $(call CONFIG_UPDATE,$(@D))
-       touch $@
-
-$(ELF2FLT_DIR)/.configured: $(ELF2FLT_DIR)/.patched
-       (cd $(ELF2FLT_DIR); rm -rf config.cache; \
-               LDFLAGS="$(HOST_LDFLAGS) -lz" \
-               $(ELF2FLT_DIR)/configure $(QUIET) \
-               --with-bfd-include-dir=$(HOST_BINUTILS_DIR)/bfd/ \
-               --with-binutils-include-dir=$(HOST_BINUTILS_DIR)/include/ \
-               --target=$(GNU_TARGET_NAME) \
-               --with-libbfd=$(HOST_BINUTILS_DIR)/bfd/libbfd.a \
-               --with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \
-               --prefix=$(HOST_DIR)/usr)
-       touch $@
-
-$(ELF2FLT_DIR)/$(ELF2FLT_BINARY): $(ELF2FLT_DIR)/.configured
-       $(MAKE) -C $(ELF2FLT_DIR) all
-       $(MAKE) -C $(ELF2FLT_DIR) install
-
-elf2flt: uclibc_target uclibc-configured binutils gcc host-zlib $(ELF2FLT_DIR)/$(ELF2FLT_BINARY)
-
-elf2flt-clean:
-       rm -rf $(ELF2FLT_SOURCE)
-
-elf2flt-dirclean:
-       rm -rf $(ELF2FLT_SOURCE)
-
-ifeq ($(BR2_ELF2FLT),y)
-TARGETS+=elf2flt
-endif
index 549317753661723e1a601c162261aed2cab5d376..5b89d561ee41e6d005bd43f0e61cace79703ca91 100644 (file)
@@ -1,6 +1,5 @@
 # Include files required for the internal toolchain backend
 
-include toolchain/elf2flt/elf2flt.mk
 include toolchain/gcc/gcc-uclibc-4.x.mk
 include toolchain/kernel-headers/kernel-headers.mk
 include toolchain/uClibc/uclibc.mk
index f58a4f78d966bcd183c97bdde26dcfe81d92dd03..422602e61f9946b91d2c4a27865ce5e267671497 100644 (file)
@@ -98,7 +98,7 @@ config BR2_PTHREAD_DEBUG
        help
          Build the thread library with debugging enabled.
 
-source "toolchain/elf2flt/Config.in"
+source "package/elf2flt/Config.in.host"
 
 config BR2_VFP_FLOAT
        bool "Use ARM Vector Floating Point unit"
index d1e755244e9268158522c90e0910fa8bf92868d7..4f9c29c19a7539ecb511f33903748b90a9ff3e88 100644 (file)
@@ -2,7 +2,6 @@
 
 # Explicit ordering:
 include toolchain/helpers.mk
-include toolchain/elf2flt/elf2flt.mk
 include toolchain/gcc/gcc-uclibc-4.x.mk
 include toolchain/toolchain-crosstool-ng/crosstool-ng.mk
 include toolchain/uClibc/uclibc.mk
index 9999aa21b20bba2f109d65fdab766c15a1dbe1c0..2aa01413bd684d516c8cbd6ba0362cbadb44c84e 100644 (file)
@@ -1,7 +1,6 @@
 # Required includes for the external toolchain backend
 
 include toolchain/helpers.mk
-include toolchain/elf2flt/elf2flt.mk
 include toolchain/gcc/gcc-uclibc-4.x.mk
 include toolchain/kernel-headers/kernel-headers.mk
 include toolchain/toolchain-external/ext-tool.mk