summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/create-menu2
-rw-r--r--target/arch.lst1
-rw-r--r--target/config/Config.in.cpu7
-rw-r--r--target/config/Config.in.libc1
-rw-r--r--target/m32c/Makefile4
5 files changed, 14 insertions, 1 deletions
diff --git a/scripts/create-menu b/scripts/create-menu
index a0dfe2067..0fca6a49f 100755
--- a/scripts/create-menu
+++ b/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
diff --git a/target/arch.lst b/target/arch.lst
index 8fdcf39c3..a41a8fcc9 100644
--- a/target/arch.lst
+++ b/target/arch.lst
@@ -13,6 +13,7 @@ h8300
hppa
ia64
lm32
+m32c
m32r
m68k
metag
diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu
index f2ba76872..7bfc528e0 100644
--- a/target/config/Config.in.cpu
+++ b/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
diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc
index 69ae1d12c..219ccdcd2 100644
--- a/target/config/Config.in.libc
+++ b/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 || \
diff --git a/target/m32c/Makefile b/target/m32c/Makefile
new file mode 100644
index 000000000..9c9eb49d0
--- /dev/null
+++ b/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