From 68d0cfd0e070b680ab666f24070ba9b38f448624 Mon Sep 17 00:00:00 2001 From: Andrew Wygle Date: Fri, 2 Jun 2017 13:06:29 -0700 Subject: Added MSP430 architecture support. Signed-off-by: Andrew Wygle diff --git a/config/arch/msp430.in b/config/arch/msp430.in new file mode 100644 index 0000000..a1c4ab5 --- /dev/null +++ b/config/arch/msp430.in @@ -0,0 +1,8 @@ +# MSP430 specific config options + +## select ARCH_SUPPORTS_16 +## select ARCH_DEFAULT_16 +## select ARCH_REQUIRES_MULTILIB +## +## help The 16-bit MSP430 architecture, as defined by: +## help http://www.ti.com/lsds/ti/microcontrollers-16-bit-32-bit/msp/overview.page?HQS=msp430 diff --git a/config/target.in b/config/target.in index 7e4e837..2ce8aa3 100644 --- a/config/target.in +++ b/config/target.in @@ -132,6 +132,9 @@ config ARCH_ENDIAN config ARCH_SUPPORTS_8 bool +config ARCH_SUPPORTS_16 + bool + config ARCH_SUPPORTS_32 bool @@ -165,6 +168,11 @@ config ARCH_8 prompt "8-bit" depends on ARCH_SUPPORTS_8 +config ARCH_16 + bool + prompt "16-bit" + depends on ARCH_SUPPORTS_16 + config ARCH_32 bool prompt "32-bit" diff --git a/scripts/build/arch/msp430.sh b/scripts/build/arch/msp430.sh new file mode 100644 index 0000000..3da731d --- /dev/null +++ b/scripts/build/arch/msp430.sh @@ -0,0 +1,6 @@ +# Compute MSP430-specific values + +CT_DoArchTupleValues() { + CT_TARGET_ARCH="${CT_ARCH}" + CT_TARGET_SKIP_CONFIG_SUB="y" +} -- cgit v0.10.2-6-g49f6