diff options
author | Yuriy Kolerov <kolerov93@gmail.com> | 2024-05-21 10:56:56 +0100 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2024-05-22 14:26:33 -0400 |
commit | 6f8ee57d0993c9606c950d311c2abd93e233491b (patch) | |
tree | dae22dd05411982e7a6b617853bc535efefa6778 /libgloss/arc/emsdp1.2.specs | |
parent | fc2e959a42fb56416daad21ffbe450c9efe31bd3 (diff) | |
download | newlib-6f8ee57d0993c9606c950d311c2abd93e233491b.zip newlib-6f8ee57d0993c9606c950d311c2abd93e233491b.tar.gz newlib-6f8ee57d0993c9606c950d311c2abd93e233491b.tar.bz2 |
arc: libgloss: Add support of EM SDP board
These specs files are introduced for EM SDP board:
* emsdp1.1.specs - EM SDP 1.1, everything in ICCM/DCCM memory
* emsdp1.1_ram.specs - EM SDP 1.1, startup code in ICCM
memory and everything else in RAM
* emsdp1.2.specs - EM SDP 1.2, everything in ICCM/DCCM memory
* emsdp1.2_ram.specs - EM SDP 1.2, startup code in ICCM
memory and everything else in RAM
An example of building an application:
$ arc-elf32-gcc -mcpu=em -specs=emsdp1.1_ram.specs main.c -o main
Signed-off-by: Vladimir Isaev <vvisaev@gmail.com>
Signed-off-by: Yuriy Kolerov <kolerov93@gmail.com>
Diffstat (limited to 'libgloss/arc/emsdp1.2.specs')
-rw-r--r-- | libgloss/arc/emsdp1.2.specs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libgloss/arc/emsdp1.2.specs b/libgloss/arc/emsdp1.2.specs new file mode 100644 index 0000000..0366fe5 --- /dev/null +++ b/libgloss/arc/emsdp1.2.specs @@ -0,0 +1,18 @@ +%rename link emsdp_link +%rename link_gcc_c_sequence emsdp_link_gcc_c_sequence +%rename startfile emsdp_startfile + +*link: +%(emsdp_link) -T emsdp1.2.ld%s + +*emsdp_libgloss: +-luart_8250 -lemsdp_uart + +*emsdp_libc: +%{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano} + +*link_gcc_c_sequence: +%(emsdp_link_gcc_c_sequence) --start-group %G %(emsdp_libc) %(emsdp_libgloss) --end-group + +*startfile: +%(emsdp_startfile) arc-main-helper%O%s |