summaryrefslogtreecommitdiff
path: root/target/config
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-01-09 21:32:28 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2018-01-12 19:57:43 +0100
commita5a60ae7133fc9b893f3d44c793ccc322fd913d3 (patch)
tree6b538263b066e1780dee5d19ed5acaa56ae5456a /target/config
parent9ca35e7ead58b872cca3ff9d7e3976863f8f8715 (diff)
add basic rtems support as a new playground
Diffstat (limited to 'target/config')
-rw-r--r--target/config/Config.in.libc12
-rw-r--r--target/config/Config.in.os22
2 files changed, 24 insertions, 10 deletions
diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc
index ebf477bbb..14a49955e 100644
--- a/target/config/Config.in.libc
+++ b/target/config/Config.in.libc
@@ -130,6 +130,7 @@ config ADK_TARGET_LIB_NEWLIB
ADK_TARGET_ARCH_XTENSA) && \
(ADK_TARGET_OS_BAREMETAL || \
ADK_TARGET_OS_FROSTED || \
+ ADK_TARGET_OS_RTEMS || \
ADK_TARGET_OS_ZEPHYR )
help
https://sourceware.org/newlib/
@@ -176,7 +177,8 @@ config ADK_TARGET_LIB_NEWLIB_2_5_0
depends on ADK_TARGET_LIB_NEWLIB \
&& !ADK_TARGET_ARCH_RISCV \
&& !ADK_TARGET_ARCH_XTENSA \
- && !ADK_TARGET_OS_FROSTED
+ && !ADK_TARGET_OS_FROSTED \
+ && !ADK_TARGET_OS_RTEMS
config ADK_TARGET_LIB_NEWLIB_RISCV
bool "2.4.0-riscv"
@@ -198,18 +200,18 @@ endchoice
choice
prompt "Threading"
+depends on ADK_TARGET_LIB_UCLIBC_NG
config ADK_TARGET_WITH_NPTL
bool "enable NPTL"
- depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS && !ADK_TARGET_LIB_NEWLIB
+ depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
config ADK_TARGET_WITH_LT
bool "enable Linuxthreads"
- depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS && ADK_TARGET_LIB_UCLIBC_NG
+ depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_SUPPORTS_THREADS
config ADK_TARGET_WITHOUT_THREADS
bool "disable threads"
- depends on ADK_TARGET_LIB_UCLIBC_NG || ADK_TARGET_LIB_NEWLIB
endchoice
@@ -278,4 +280,4 @@ config ADK_TARGET_SUFFIX
default "muslfdpic" if ADK_TARGET_LIB_MUSL && ADK_TARGET_BINFMT_FDPIC
default "musl" if ADK_TARGET_LIB_MUSL
default "eabi" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_ARCH_ARM
- default "elf" if ADK_TARGET_LIB_NEWLIB
+ default "elf" if ADK_TARGET_LIB_NEWLIB && ADK_TARGET_OS_BAREMETAL
diff --git a/target/config/Config.in.os b/target/config/Config.in.os
index 6d77dfa4b..7fff1d521 100644
--- a/target/config/Config.in.os
+++ b/target/config/Config.in.os
@@ -9,6 +9,16 @@ config ADK_TARGET_OS_LINUX
help
Create a Linux system or toolchain.
+config ADK_TARGET_OS_BAREMETAL
+ bool "Bare metal"
+ help
+ Create a bare metal appliance or toolchain.
+
+config ADK_TARGET_OS_RTEMS
+ bool "RTEMS"
+ help
+ Create a RTEMS appliance or toolchain.
+
config ADK_TARGET_OS_FROSTED
bool "Frosted"
help
@@ -19,9 +29,11 @@ config ADK_TARGET_OS_ZEPHYR
help
Create a zephyr appliance or toolchain.
-config ADK_TARGET_OS_BAREMETAL
- bool "Bare metal"
- help
- Create a bare metal appliance or toolchain.
-
endchoice
+
+config ADK_TARGET_OS
+ string
+ default "linux" if ADK_TARGET_OS_LINUX
+ default "frosted" if ADK_TARGET_OS_FROSTED
+ default "rtems5.0.0" if ADK_TARGET_OS_RTEMS
+ default "zephyr" if ADK_TARGET_OS_ZEPHYR