summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-07-09 16:01:37 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-07-09 16:01:45 -0500
commit3fc6aff4e447d0f64474788bea63f77dd623ce16 (patch)
tree83a57a6ea2f2950aa9ed5b06120e83300d7d7e32 /toolchain/gcc/Makefile
parent9351601c88d763468667b5e929be621da2f5607f (diff)
add support for metag architecture
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 93ef6fcf4..24b871025 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -60,12 +60,12 @@ GCC_FINAL_CONFOPTS:=
ifeq ($(ADK_TARGET_WITH_NPTL),y)
ifeq ($(ADK_TARGET_LIB_WITHOUT_THREADS),)
-GCC_CONFOPTS+= --enable-tls --enable-threads --enable-libatomic
+GCC_FINAL_CONFOPTS+= --enable-tls --enable-threads --enable-libatomic
else
-GCC_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic
+GCC_FINAL_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic
endif
else
-GCC_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic
+GCC_FINAL_CONFOPTS+= --disable-tls --disable-threads --disable-libatomic
endif
ifeq ($(ADK_TARGET_BINFMT_FLAT)$(ADK_TARGET_USE_STATIC_LIBS),y)
@@ -114,6 +114,10 @@ ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)
GCC_CONFOPTS+= --with-mode=thumb
endif
+ifeq ($(ADK_TARGET_ARCH_METAG),y)
+GCC_CONFOPTS+= --enable-meta-default
+endif
+
ifeq ($(ADK_CPU_CF),y)
GCC_CONFOPTS+= --enable-multilib --with-arch=cf
endif
@@ -214,6 +218,8 @@ endif
--enable-languages=c \
--disable-libssp \
--disable-shared \
+ --disable-threads \
+ --disable-multilib \
--without-headers
touch $@
@@ -242,6 +248,15 @@ $(GCC_BUILD_DIR_INITIAL)/.configured:
--with-sysroot=$(STAGING_TARGET_DIR)
touch $@
+ifeq ($(ADK_TOOLCHAIN_GCC_4_2_4),y)
+$(GCC_BUILD_DIR_INITIAL)/.compiled: $(GCC_BUILD_DIR_INITIAL)/.configured
+ PATH='$(TARGET_PATH)' $(MAKE) ${GCC_MAKEOPTS} -C $(GCC_BUILD_DIR_INITIAL) all-gcc
+ touch $@
+
+$(WRKBUILD)/.configured: $(GCC_BUILD_DIR_INITIAL)/.compiled
+ PATH='$(TARGET_PATH)' $(MAKE) -C $(GCC_BUILD_DIR_INITIAL) install-gcc
+ touch $@
+else
$(GCC_BUILD_DIR_INITIAL)/.compiled: $(GCC_BUILD_DIR_INITIAL)/.configured
PATH='$(TARGET_PATH)' $(MAKE) ${GCC_MAKEOPTS} -C $(GCC_BUILD_DIR_INITIAL) all-gcc all-target-libgcc
touch $@
@@ -249,6 +264,7 @@ $(GCC_BUILD_DIR_INITIAL)/.compiled: $(GCC_BUILD_DIR_INITIAL)/.configured
$(WRKBUILD)/.configured: $(GCC_BUILD_DIR_INITIAL)/.compiled
PATH='$(TARGET_PATH)' $(MAKE) -C $(GCC_BUILD_DIR_INITIAL) install-gcc install-target-libgcc
touch $@
+endif
$(GCC_BUILD_DIR_FINAL)/.configured:
mkdir -p $(GCC_BUILD_DIR_FINAL)