-
Notifications
You must be signed in to change notification settings - Fork 1
/
runtime.xml
43 lines (34 loc) · 1.24 KB
/
runtime.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" ?>
<gprconfig>
<configuration>
<config>
type Loaders is ("ROM", "RAM", "USER");
Loader : Loaders := external ("LOADER", "ROM");
type Boards is ("STM32F411-NUCLEO");
Board: Boards := external("BOARD","STM32F411-NUCLEO");
package Compiler is
Common_Required_Switches := ("-mlittle-endian", "-mhard-float",
"-mcpu=cortex-m4", "-mfpu=fpv4-sp-d16", "-mthumb");
for Leading_Required_Switches ("Ada") use
Compiler'Leading_Required_Switches ("Ada") &
Common_Required_Switches;
for Leading_Required_Switches ("C") use
Compiler'Leading_Required_Switches ("C") &
Common_Required_Switches;
end Compiler;
package Linker is
for Required_Switches use Linker'Required_Switches &
("-L${RUNTIME_DIR(ada)}/adalib", "-nolibc", "-nostartfiles") &
Compiler.Common_Required_Switches;
case Loader is
when "USER" =>
when others =>
for Required_Switches use Linker'Required_Switches &
("-L", "${RUNTIME_DIR(ada)}/bsp/",
"-T", "memory-map.ld",
"-T", "common-" & Loader & ".ld");
end case;
end Linker;
</config>
</configuration>
</gprconfig>