Browse Source

add msp430 newlib toolchain support

Waldemar Brodkorb 5 years ago
parent
commit
272acea1ae
4 changed files with 12 additions and 0 deletions
  1. 1 0
      target/arch.lst
  2. 6 0
      target/config/Config.in.cpu
  3. 1 0
      target/config/Config.in.libc
  4. 4 0
      target/msp430/Makefile

+ 1 - 0
target/arch.lst

@@ -19,6 +19,7 @@ microblaze
 mips
 mips64
 moxie
+msp430
 nds32
 nios2
 or1k

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

@@ -689,6 +689,11 @@ config ADK_TARGET_CPU_MOXIE
 	select ADK_TARGET_WITH_MMU
 	depends on ADK_TARGET_ARCH_MOXIE
 
+# msp430
+config ADK_TARGET_CPU_MSP430
+	bool "msp430"
+	depends on ADK_TARGET_ARCH_MSP430
+
 # nds32
 config ADK_TARGET_CPU_NDS32
 	bool "nds32"
@@ -1631,6 +1636,7 @@ config ADK_TARGET_CPU_ARCH
 	default "mips" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_BIG_ENDIAN
 	default "mipsel" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_LITTLE_ENDIAN
 	default "moxie" if ADK_TARGET_ARCH_MOXIE
+	default "msp430" if ADK_TARGET_ARCH_MSP430
 	default "nds32le" if ADK_TARGET_ARCH_NDS32 && ADK_TARGET_LITTLE_ENDIAN
 	default "nds32be" if ADK_TARGET_ARCH_NDS32 && ADK_TARGET_BIG_ENDIAN
 	default "nios2" if ADK_TARGET_ARCH_NIOS2

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

@@ -95,6 +95,7 @@ config ADK_TARGET_LIB_NEWLIB
 		ADK_TARGET_ARCH_MICROBLAZE || \
 		ADK_TARGET_ARCH_MIPS || \
 		ADK_TARGET_ARCH_MOXIE || \
+		ADK_TARGET_ARCH_MSP430 || \
 		ADK_TARGET_ARCH_NIOS2 || \
 		ADK_TARGET_ARCH_NDS32 || \
 		ADK_TARGET_ARCH_OR1K || \

+ 4 - 0
target/msp430/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