From 74602928100394f6129e064f8e0bfe6c9e08c9d2 Mon Sep 17 00:00:00 2001 From: alanNz Date: Sat, 21 Mar 2020 09:13:42 +1300 Subject: -Add xc16 and c2000 C,Cpp toolchain support --- cross/c2000.txt | 26 ++++++++++++++++++++++++++ cross/xc16.txt | 24 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 cross/c2000.txt create mode 100644 cross/xc16.txt (limited to 'cross') diff --git a/cross/c2000.txt b/cross/c2000.txt new file mode 100644 index 0000000..e624f25 --- /dev/null +++ b/cross/c2000.txt @@ -0,0 +1,26 @@ +# This file assumes that path to the Texas Instruments C20000 toolchain is added +# to the environment(PATH) variable, so that Meson can find +# cl2000 and ar2000 while building. +[binaries] +c = 'cl2000' +ar = 'ar2000' +strip = 'cl2000' + +[host_machine] +system = 'bare metal' +cpu_family = 'c2000' +cpu = 'c28x' +endian = 'little' + +[properties] +needs_exe_wrapper = true +c_args = [ + '-v28', + '-ml', + '-mt'] +c_link_args = [ + '-z', + '--rom_model', + '\f28004x_flash.cmd'] +cpp_args = [] +cpp_link_args = [] diff --git a/cross/xc16.txt b/cross/xc16.txt new file mode 100644 index 0000000..1e67362 --- /dev/null +++ b/cross/xc16.txt @@ -0,0 +1,24 @@ +# This file assumes that path to the Microchip xc16 toolchain is added +# to the environment(PATH) variable, so that Meson can find +# xc16-gcc and xc16-ar while building. +[binaries] +c = 'xc16-gcc' +ar = 'xc16-ar' +strip = 'xc16-gcc' + +[host_machine] +system = 'bare metal' +cpu_family = 'dspic' +cpu = '33ep64mc203' +endian = 'little' + +[properties] +needs_exe_wrapper = true +c_args = [ + '-c', + '-mcpu=33EP64MC203', + '-omf=elf'] +c_link_args = [ + '-mcpu=33EP64MC203', + '-omf=elf', + '-Wl,--script=p33EP64MC203.gld,'] -- cgit v1.1