aboutsummaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorWilliam Toohey <wtoohey@tritium.com.au>2022-01-27 12:45:57 +1000
committerJussi Pakkanen <jpakkane@gmail.com>2022-02-02 16:45:05 +0200
commitb4d9b2551c32288754a3008d14895c6fe53f48e2 (patch)
tree0e13c8818bbd8e368ca01069154b8482a047a833 /cross
parent316cf3a717744bd849a04de4a1625c06779f90a9 (diff)
downloadmeson-b4d9b2551c32288754a3008d14895c6fe53f48e2.zip
meson-b4d9b2551c32288754a3008d14895c6fe53f48e2.tar.gz
meson-b4d9b2551c32288754a3008d14895c6fe53f48e2.tar.bz2
Genericise TI compiler and add MSP430 support
Diffstat (limited to 'cross')
-rw-r--r--cross/msp430.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/cross/msp430.txt b/cross/msp430.txt
new file mode 100644
index 0000000..839c90b
--- /dev/null
+++ b/cross/msp430.txt
@@ -0,0 +1,25 @@
+# This file assumes that path to the Texas Instruments MSP430 toolchain is added
+# to the environment(PATH) variable, so that Meson can find
+# cl430 and ar430 while building.
+[binaries]
+c = cl430
+ar = ar430
+strip = strip430
+
+[host_machine]
+system = 'baremetal'
+cpu_family = 'msp430'
+endian = 'little'
+
+[built-in options]
+c_args = [
+ '-vmsp',
+ '--printf_support=minimal']
+c_link_args = [
+ '--rom_model',
+ '-llibc.a',]
+cpp_args = []
+cpp_link_args = []
+
+[properties]
+needs_exe_wrapper = true