Browse Source

add new arch m32c (newlib toolchain)

Waldemar Brodkorb 4 years ago
parent
commit
a0f2893bb4
5 changed files with 14 additions and 1 deletions
  1. 1 1
      scripts/create-menu
  2. 1 0
      target/arch.lst
  3. 7 0
      target/config/Config.in.cpu
  4. 1 0
      target/config/Config.in.libc
  5. 4 0
      target/m32c/Makefile

+ 1 - 1
scripts/create-menu

@@ -93,7 +93,7 @@ for arch in $(cat $topdir/target/arch.lst);do
 		alpha|s390|tile|ppc64|mips64)
 		  printf "\tdepends on ADK_TARGET_OS_LINUX\n" >> $topdir/target/config/Config.in.arch.choice
 		  ;;
-		cr16|epiphany|m32r|mn10300|moxie|msp430|rx|v850)
+		cr16|epiphany|m32c|m32r|mn10300|moxie|msp430|rx|v850)
 		  printf "\tdepends on ADK_TARGET_OS_BAREMETAL\n" >> $topdir/target/config/Config.in.arch.choice
 		  ;;
 	esac

+ 1 - 0
target/arch.lst

@@ -13,6 +13,7 @@ h8300
 hppa
 ia64
 lm32
+m32c
 m32r
 m68k
 metag

+ 7 - 0
target/config/Config.in.cpu

@@ -745,6 +745,12 @@ config ADK_TARGET_CPU_CF_5475
 	select ADK_TARGET_WITH_MMU
 	depends on ADK_TARGET_ARCH_M68K
 
+# m32c
+config ADK_TARGET_CPU_M32C
+	bool "m32c"
+	select ADK_TARGET_WITH_MMU
+	depends on ADK_TARGET_ARCH_M32C
+
 # m32r
 config ADK_TARGET_CPU_M32R
 	bool "m32r"
@@ -2074,6 +2080,7 @@ config ADK_TARGET_CPU_ARCH
 	default "hppa" if ADK_TARGET_ARCH_HPPA
 	default "ia64" if ADK_TARGET_ARCH_IA64
 	default "lm32" if ADK_TARGET_ARCH_LM32
+	default "m32c" if ADK_TARGET_ARCH_M32C
 	default "m32r" if ADK_TARGET_ARCH_M32R
 	default "m68k" if ADK_TARGET_ARCH_M68K
 	default "metag" if ADK_TARGET_ARCH_METAG

+ 1 - 0
target/config/Config.in.libc

@@ -102,6 +102,7 @@ config ADK_TARGET_LIB_NEWLIB
 		ADK_TARGET_ARCH_H8300 || \
 		ADK_TARGET_ARCH_IA64 || \
 		ADK_TARGET_ARCH_LM32 || \
+		ADK_TARGET_ARCH_M32C || \
 		ADK_TARGET_ARCH_M32R || \
 		ADK_TARGET_ARCH_M68K || \
 		ADK_TARGET_ARCH_MICROBLAZE || \

+ 4 - 0
target/m32c/Makefile

@@ -0,0 +1,4 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk