summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
Diffstat (limited to 'cross')
-rw-r--r--cross/metrowerks-arm.txt28
-rw-r--r--cross/metrowerks-eppc.txt28
-rw-r--r--cross/metrowerks.lcf18
3 files changed, 74 insertions, 0 deletions
diff --git a/cross/metrowerks-arm.txt b/cross/metrowerks-arm.txt
new file mode 100644
index 000000000..a13175b17
--- /dev/null
+++ b/cross/metrowerks-arm.txt
@@ -0,0 +1,28 @@
+# This file assumes that the path to your Metrowerks Embedded ARM
+# toolchain is added to the environment(PATH) variable, so that
+# Meson can find the binaries while building.
+
+# You should also do one of the following to ensure Meson can
+# locate the .lcf linker script:
+# - Add the cross directory to PATH as well
+# - Edit c_link_args and cpp_link_args with the full
+# path to the .lcf file on your machine
+
+[binaries]
+c = 'mwccarm'
+c_ld = 'mwldarm'
+cpp = 'mwccarm'
+cpp_ld = 'mwldarm'
+ar = 'mwldarm'
+as = 'mwasmarm'
+
+[built-in options]
+c_args = ['-lang', 'c99', '-D_NITRO', '-nosyspath']
+c_link_args = 'metrowerks.lcf'
+cpp_args = ['-lang', 'c++', '-D_NITRO', '-nosyspath']
+cpp_link_args = 'metrowerks.lcf'
+
+[host_machine]
+system = 'bare metal'
+cpu_family = 'arm'
+endian = 'little' \ No newline at end of file
diff --git a/cross/metrowerks-eppc.txt b/cross/metrowerks-eppc.txt
new file mode 100644
index 000000000..e5e0e42fe
--- /dev/null
+++ b/cross/metrowerks-eppc.txt
@@ -0,0 +1,28 @@
+# This file assumes that the path to your Metrowerks toolchain
+# of choice is added to the environment(PATH) variable, so that
+# Meson can find the binaries while building.
+
+# You should also do one of the following to ensure Meson can
+# locate the .lcf linker script:
+# - Add the cross directory to PATH as well
+# - Edit c_link_args and cpp_link_args with the full
+# path to the lcf file on your machine
+
+[binaries]
+c = 'mwcceppc'
+c_ld = 'mwldeppc'
+cpp = 'mwcceppc'
+cpp_ld = 'mwldeppc'
+ar = 'mwldeppc'
+as = 'mwasmeppc'
+
+[built-in options]
+c_args = ['-lang', 'c99', '-nosyspath']
+c_link_args = 'metrowerks.lcf'
+cpp_args = ['-lang', 'c++', '-nosyspath']
+cpp_link_args = 'metrowerks.lcf'
+
+[host_machine]
+system = 'bare metal'
+cpu_family = 'ppc'
+endian = 'little' \ No newline at end of file
diff --git a/cross/metrowerks.lcf b/cross/metrowerks.lcf
new file mode 100644
index 000000000..96d13afda
--- /dev/null
+++ b/cross/metrowerks.lcf
@@ -0,0 +1,18 @@
+# General-purpose linker script for Metrowerks toolchains.
+# This script will link a blank application. Its only purpose
+# is to allow the toolchains to run Meson tests. To link an
+# actual application, you need to write your own fine-tuned lcf.
+
+MEMORY {
+ TEST (RWX) : ORIGIN=0, LENGTH=0
+}
+
+SECTIONS {
+ .TEST:{
+ * (.text)
+ * (.data)
+ * (.rodata)
+ * (.bss)
+ __startup=.;
+ } > TEST
+} \ No newline at end of file