This repository has been archived by the owner on Feb 15, 2025. It is now read-only.
forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial support for Metrowerks C/C++ compiler
- Loading branch information
1 parent
bda799d
commit 18cfa54
Showing
14 changed files
with
571 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Added Metrowerks C/C++ toolchains | ||
|
||
Added support for the Metrowerks Embedded ARM and Metrowerks Embedded PowerPC toolchains (https://www.nxp.com/docs/en/reference-manual/CWMCUKINCMPREF.pdf). | ||
|
||
The implementation is somewhat experimental. It has been tested on a few projects and works fairly well, but may have issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.