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 --- toolchain/gcc/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'toolchain') 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 -- cgit v1.2.3