summaryrefslogtreecommitdiff
path: root/target/config/Config.in.endian
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-03-05 12:51:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-03-07 06:42:57 +0100
commitc384dc577bd32f3315bacb410fc31610b41f742c (patch)
tree903aaed00f4b82d5e1eada2bd4fea8a7f3387ded /target/config/Config.in.endian
parent68d4e79f35039b31ae835e82241a567b0ad66aa8 (diff)
rework menu based config system
After the addition of bare metal toolchains the menu system allowed to create non-valid configurations. I reworked it so we can also add other operating system support if we wish. So first you choose your operating system, then your architecture and endianess, after that your embedded system, emulator or generic device and then you choose your task you want to run. Tasks may be toolchain, a new appliance/application or some preconfigured sets of packages and configurations as kodi, mpd, firefox and more. The tasks are limited to a plausible choice of hardware and software. Deduplicate CPU configuration. You don't wanna compile Kodi for a H8/300 microcontroller ;)
Diffstat (limited to 'target/config/Config.in.endian')
-rw-r--r--target/config/Config.in.endian27
1 files changed, 10 insertions, 17 deletions
diff --git a/target/config/Config.in.endian b/target/config/Config.in.endian
index cd1151a4e..07a16d09f 100644
--- a/target/config/Config.in.endian
+++ b/target/config/Config.in.endian
@@ -16,27 +16,20 @@ depends on ADK_TARGET_ARCH_ARC \
|| ADK_TARGET_ARCH_XTENSA
config ADK_TARGET_LITTLE_ENDIAN
- bool "Little endian"
- depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
- depends on !ADK_TARGET_SYSTEM_DRAGINO_MS14S
- depends on !ADK_TARGET_SYSTEM_LINKSYS_NSLU2
- depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB4XX
- depends on !ADK_CPU_SH2A
+ bool "little"
config ADK_TARGET_BIG_ENDIAN
- bool "Big endian"
- depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
- depends on !ADK_TARGET_SYSTEM_LEMOTE_YEELONG
- depends on !ADK_TARGET_SYSTEM_RASPBERRY_PI
- depends on !ADK_TARGET_SYSTEM_RASPBERRY_PI2
- depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
- depends on !ADK_TARGET_SYSTEM_QEMU_ARM
- depends on !ADK_TARGET_SYSTEM_QEMU_XTENSA
- depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
- depends on !ADK_TARGET_SYSTEM_KINETIS_K70
-
+ bool "big"
+
endchoice
+config ADK_TARGET_ENDIAN_SUFFIX
+ string
+ default "le" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_PPC64)
+ default "el" if ADK_TARGET_LITTLE_ENDIAN && (ADK_TARGET_ARCH_MIPS || ADK_TARGET_ARCH_MIPS64 || ADK_TARGET_ARCH_MICROBLAZE)
+ default "be" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_NDS32 || ADK_TARGET_ARCH_AARCH64)
+ default "eb" if ADK_TARGET_BIG_ENDIAN && (ADK_TARGET_ARCH_ARC || ADK_TARGET_ARM || ADK_TARGET_ARCH_SH)
+
config ADK_TARGET_ENDIAN
string
default "little" if ADK_TARGET_LITTLE_ENDIAN