From a5a60ae7133fc9b893f3d44c793ccc322fd913d3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 9 Jan 2018 21:32:28 +0100 Subject: add basic rtems support as a new playground --- target/config/Config.in.libc | 12 +++++++----- target/config/Config.in.os | 22 +++++++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) (limited to 'target/config') 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 -- cgit v1.2.3