-
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.
Add Analyze and Safe build targets for Pico
The Analyze target is meant to be run with GNAT SAS on a CI server, since it forces deep mode analysis. The Safe target is meant to provide a "safe image" compile that has runtime checking and optimization turned off. This can work around compile bugs or runtime check bugs in a last resort image.
- Loading branch information
Showing
4 changed files
with
113 additions
and
1 deletion.
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
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,40 @@ | ||
with "pico_bsp.gpr"; | ||
|
||
project pico_analyze extends all "a_bareboard_debug.gpr" is | ||
|
||
----------------------------------------------- | ||
-- These lines of code must be included at the | ||
-- top of every Adamant based .gpr file. They | ||
-- are used to connect the Adamant build system | ||
-- to GPRBuild. | ||
----------------------------------------------- | ||
for Source_Dirs use a_adamant.SOURCE_DIRS; | ||
for Object_Dir use a_adamant.OBJECT_DIR; | ||
for Exec_Dir use a_adamant.EXEC_DIR; | ||
|
||
-- Specify cross compiler ARM target and Ravenscar runtime: | ||
for Target use "arm-eabi"; | ||
for Runtime ("Ada") use "embedded-rpi-pico"; | ||
-- C++ not supported for arm-eabi currently. | ||
for Languages use ("Ada", "C", "ASM_CPP"); | ||
|
||
-- Common binder switches: | ||
package Binder is | ||
for Switches ("Ada") use a_bareboard_base.Binder'Switches ("Ada") & | ||
-- Store tracebacks in exception occurrences | ||
-- https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gnat_ugn_unw/Switches-for-gnatbind.html | ||
("-E"); | ||
end Binder; | ||
|
||
package Linker is | ||
for Switches ("Ada") use a_bareboard_base.Linker'Switches ("Ada"); | ||
end Linker; | ||
|
||
-- Force analysis into "deep" mode | ||
package Analyzer is | ||
for Switches ("analyze") use a_bareboard_debug.Analyzer'Switches ("analyze") & | ||
("--mode=deep"); | ||
for Additional_Patterns use a_bareboard_debug.Analyzer'Additional_Patterns; | ||
end Analyzer; | ||
|
||
end pico_analyze; |
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,33 @@ | ||
with "pico_bsp.gpr"; | ||
|
||
project pico_development extends all "a_bareboard_safe.gpr" is | ||
|
||
----------------------------------------------- | ||
-- These lines of code must be included at the | ||
-- top of every Adamant based .gpr file. They | ||
-- are used to connect the Adamant build system | ||
-- to GPRBuild. | ||
----------------------------------------------- | ||
for Source_Dirs use a_adamant.SOURCE_DIRS; | ||
for Object_Dir use a_adamant.OBJECT_DIR; | ||
for Exec_Dir use a_adamant.EXEC_DIR; | ||
|
||
-- Specify cross compiler ARM target and Ravenscar runtime: | ||
for Target use "arm-eabi"; | ||
for Runtime ("Ada") use "embedded-rpi-pico"; | ||
-- C++ not supported for arm-eabi currently. | ||
for Languages use ("Ada", "C", "ASM_CPP"); | ||
|
||
-- Common binder switches: | ||
package Binder is | ||
for Switches ("Ada") use a_bareboard_base.Binder'Switches ("Ada") & | ||
-- Store tracebacks in exception occurrences | ||
-- https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gnat_ugn_unw/Switches-for-gnatbind.html | ||
("-E"); | ||
end Binder; | ||
|
||
package Linker is | ||
for Switches ("Ada") use a_bareboard_base.Linker'Switches ("Ada"); | ||
end Linker; | ||
|
||
end pico_development; |
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