Browse Source

bfin needs older elf2flt to link busybox successfully

Waldemar Brodkorb 1 year ago
parent
commit
89a2f5c07a
3 changed files with 26 additions and 0 deletions
  1. 2 0
      target/config/Config.in.binfmt
  2. 16 0
      target/config/Config.in.elf2flt
  3. 8 0
      toolchain/elf2flt/Makefile.inc

+ 2 - 0
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

+ 16 - 0
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

+ 8 - 0
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