Adding required switches for cortex-m0+
This commit is contained in:
parent
abede4a41c
commit
7edee9f7cc
35
runtime/runtime.xml
Normal file
35
runtime/runtime.xml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" ?>
|
||||||
|
|
||||||
|
<gprconfig>
|
||||||
|
<configuration>
|
||||||
|
<config><![CDATA[
|
||||||
|
|
||||||
|
package Compiler is
|
||||||
|
Common_Required_Switches :=
|
||||||
|
("-mlittle-endian",
|
||||||
|
"-mcpu=cortex-m0plus", "-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 &
|
||||||
|
("${RUNTIME_DIR(ada)}/adalib/libgnat.a") &
|
||||||
|
Compiler.Common_Required_Switches &
|
||||||
|
("-nostdlib", "-lm", "-lgcc", "-lc");
|
||||||
|
end Linker;
|
||||||
|
|
||||||
|
package Binder is
|
||||||
|
for Required_Switches ("Ada") use Binder'Required_Switches ("Ada")
|
||||||
|
& ("-nostdlib");
|
||||||
|
end Binder;
|
||||||
|
]]>
|
||||||
|
</config>
|
||||||
|
</configuration>
|
||||||
|
</gprconfig>
|
||||||
Loading…
Reference in New Issue
Block a user