summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-03 11:46:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-03 16:56:48 +0100
commitf250397c96dbfb7f3ea1c0a5ae1d9d1a82e1f4b2 (patch)
treef81555843257cc2d249ab660a4d6f2f386fecc4e /mk
parent7d455976fb819146a50a8fa0483730b16231171f (diff)
toolchain: add newlib support
OpenADK can now build bare-metal toolchains. Tested for ARM/MIPS. No runtime testing, yet.
Diffstat (limited to 'mk')
-rw-r--r--mk/vars.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 16f6c37c5..29826cf5b 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -75,6 +75,9 @@ GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_VENDOR)-$(ADK_TARGET_LINUXTYPE)-$
ifeq ($(ADK_TARGET_ARCH_C6X),y)
GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_TARGET_LINUXTYPE)
endif
+ifeq ($(ADK_TARGET_LIB_NEWLIB),y)
+GNU_TARGET_NAME:= $(ADK_TARGET_CPU_ARCH)-$(ADK_VENDOR)-$(ADK_TARGET_SUFFIX)
+endif
TARGET_CROSS:= $(TOOLCHAIN_DIR)/usr/bin/$(GNU_TARGET_NAME)-
TARGET_COMPILER_PREFIX?=${TARGET_CROSS}
CONFIGURE_TRIPLE:= --build=${GNU_HOST_NAME} \