summaryrefslogtreecommitdiff
path: root/toolchain/gcc
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 /toolchain/gcc
parent9ca35e7ead58b872cca3ff9d7e3976863f8f8715 (diff)
add basic rtems support as a new playground
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index aefc945a8..1857cf0cb 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -56,6 +56,8 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--disable-werror \
--disable-nls
+ifeq ($(ADK_TARGET_OS_LINUX),y)
+ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
ifeq ($(ADK_TARGET_WITH_NPTL),y)
GCC_FINAL_CONFOPTS:= --enable-tls --enable-threads --enable-libatomic
GCC_TLS_CONFOPTS:= --enable-tls
@@ -68,6 +70,15 @@ ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS)$(ADK_TARGET_WITHOUT_THREADS),y)
GCC_FINAL_CONFOPTS:= --disable-tls --disable-threads --disable-libatomic
GCC_TLS_CONFOPTS:= --disable-tls
endif
+else
+GCC_FINAL_CONFOPTS:= --enable-tls --enable-threads --enable-libatomic
+GCC_TLS_CONFOPTS:= --enable-tls
+endif
+endif
+
+ifeq ($(ADK_TARGET_OS_RTEMS),y)
+GCC_FINAL_CONFOPTS:= --enable-libatomic
+endif
ifeq ($(ADK_TARGET_LIB_NEWLIB),y)
GCC_FINAL_CONFOPTS+= --with-newlib