diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-12-03 11:46:03 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-12-03 16:56:48 +0100 |
commit | f250397c96dbfb7f3ea1c0a5ae1d9d1a82e1f4b2 (patch) | |
tree | f81555843257cc2d249ab660a4d6f2f386fecc4e /toolchain/gcc | |
parent | 7d455976fb819146a50a8fa0483730b16231171f (diff) |
toolchain: add newlib support
OpenADK can now build bare-metal toolchains.
Tested for ARM/MIPS. No runtime testing, yet.
Diffstat (limited to 'toolchain/gcc')
-rw-r--r-- | toolchain/gcc/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 079ddd0e5..d5375751c 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -56,6 +56,10 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \ --without-isl \ --disable-nls +ifeq ($(ADK_TARGET_LIB_NEWLIB),y) +GCC_FINAL_CONFOPTS:= --with-newlib +endif + ifeq ($(ADK_TARGET_WITH_NPTL),y) GCC_FINAL_CONFOPTS:= --enable-tls --enable-threads --enable-libatomic endif @@ -255,6 +259,10 @@ else PATH='$(TARGET_PATH)' \ $(MAKE) -C $(GCC_BUILD_DIR_INITIAL) install-gcc install-target-libgcc endif + # required for newlib + (cd $(TOOLCHAIN_DIR)/usr/bin && \ + ln -sf $(GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-cc \ + ) ifeq ($(ADK_TARGET_ARCH_M68K),y) # create gcc wrapper for uClinux/m68k echo "#!/bin/sh" > $(TOOLCHAIN_DIR)/usr/bin/adk-uclinux-gcc |