summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-01-21 10:16:32 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-01-21 10:16:42 +0100
commit89a2f5c07a3c5ad6d6b4b602cfb0b32fe2f3e6e7 (patch)
tree79e1094738c48efb6dc4d744601ca3de0720c65c
parent5ce984f6d78b42190baf4e0469749ea41f43bbcf (diff)
bfin needs older elf2flt to link busybox successfully
-rw-r--r--target/config/Config.in.binfmt2
-rw-r--r--target/config/Config.in.elf2flt16
-rw-r--r--toolchain/elf2flt/Makefile.inc8
3 files changed, 26 insertions, 0 deletions
diff --git a/target/config/Config.in.binfmt b/target/config/Config.in.binfmt
index 7da792992..a9ba0a787 100644
--- a/target/config/Config.in.binfmt
+++ b/target/config/Config.in.binfmt
@@ -52,6 +52,8 @@ config ADK_TARGET_BINFMT_FLAT_SEP_DATA
endchoice
+source "target/config/Config.in.elf2flt"
+
config ADK_TARGET_BINFMT
string
depends on ADK_TARGET_ARCH_BFIN
diff --git a/target/config/Config.in.elf2flt b/target/config/Config.in.elf2flt
new file mode 100644
index 000000000..59757237e
--- /dev/null
+++ b/target/config/Config.in.elf2flt
@@ -0,0 +1,16 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+choice
+prompt "elf2flt version"
+default ADK_TOOLCHAIN_ELF2FLT_2021_08
+
+config ADK_TOOLCHAIN_ELF2FLT_2021_08
+ bool "2021-08"
+ depends on !ADK_TARGET_ARCH_BFIN
+
+config ADK_TOOLCHAIN_ELF2FLT_OLD
+ bool "old version"
+ depends on ADK_TARGET_ARCH_BFIN
+
+endchoice
diff --git a/toolchain/elf2flt/Makefile.inc b/toolchain/elf2flt/Makefile.inc
index 89c47f367..2f349ca79 100644
--- a/toolchain/elf2flt/Makefile.inc
+++ b/toolchain/elf2flt/Makefile.inc
@@ -2,7 +2,15 @@
# material, please see the LICENCE file in the top-level directory.
PKG_NAME:= elf2flt
+ifeq ($(ADK_TOOLCHAIN_ELF2FLT_2021_08),y)
PKG_VERSION:= v2021.08
PKG_GIT:= tag
PKG_RELEASE:= 1
PKG_SITES:= https://github.com/uclinux-dev/elf2flt.git
+endif
+ifeq ($(ADK_TOOLCHAIN_ELF2FLT_OLD),y)
+PKG_VERSION:= 453398f917d167f8c308c8f997270c48ae8f8b12
+PKG_GIT:= hash
+PKG_RELEASE:= 1
+PKG_SITES:= https://github.com/uclinux-dev/elf2flt.git
+endif