aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Sonic Zhang <sonic.zhang@analog.com>2013-05-03 00:39:34 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2013-05-05 22:46:37 +0200
commit57133825c930a193ce9223b4372b900c4c84c9b9 (patch)
treed0bddeffcc17b52577ea2a9248dd5804454f4761 /arch
parentf88188f09e10d93a5804ac0719d4a597f6d66c1d (diff)
downloadbuildroot-57133825c930a193ce9223b4372b900c4c84c9b9.tar.gz
buildroot-57133825c930a193ce9223b4372b900c4c84c9b9.tar.bz2
arch: toolchain: Introduce binary formats BINFMT_*.
Just introduce the symbol and options in arch generic Config.in. Append FLAT format link flags to external toolchain wrapper. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'arch')
-rw-r--r--arch/Config.in34
-rw-r--r--arch/Config.in.bfin11
2 files changed, 34 insertions, 11 deletions
diff --git a/arch/Config.in b/arch/Config.in
index 2006f1e0de..e32cfd9147 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -189,6 +189,40 @@ config BR2_GCC_TARGET_ABI
config BR2_GCC_TARGET_CPU
string
+# Set up target binary format
+choice
+ prompt "Target Binary Format"
+ depends on BR2_bfin || BR2_m68k
+ default BR2_BINFMT_FDPIC
+
+config BR2_BINFMT_ELF
+ bool "ELF"
+ depends on !BR2_bfin && !BR2_m68k
+ help
+ ELF (Executable and Linkable Format) is a format for libraries and
+ executables used across different architectures and operating
+ systems.
+
+config BR2_BINFMT_FDPIC
+ bool "FDPIC"
+ depends on BR2_bfin || BR2_m68k
+ help
+ ELF FDPIC binaries are based on ELF, but allow the individual load
+ segments of a binary to be located in memory independently of each
+ other. This makes this format ideal for use in environments where no
+ MMU is available.
+
+config BR2_BINFMT_FLAT
+ bool "FLAT"
+ depends on BR2_bfin || BR2_m68k
+ select BR2_PREFER_STATIC_LIB
+ help
+ FLAT binary is a relatively simple and lightweight executable format
+ based on the original a.out format. It is widely used in environment
+ where no MMU is available.
+
+endchoice
+
if BR2_arcle || BR2_arceb
source "arch/Config.in.arc"
endif
diff --git a/arch/Config.in.bfin b/arch/Config.in.bfin
index 0b137ae8e8..2a7ff547fe 100644
--- a/arch/Config.in.bfin
+++ b/arch/Config.in.bfin
@@ -1,14 +1,3 @@
-choice
- prompt "Target ABI"
- depends on BR2_bfin
- default BR2_BFIN_FDPIC
-config BR2_BFIN_FDPIC
- bool "FDPIC"
-config BR2_BFIN_FLAT
- bool "FLAT"
- select BR2_PREFER_STATIC_LIB
-endchoice
-
config BR2_ARCH
default "bfin"