-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the dependency over embedded-runtimes.
This build dependency won't work anymore with the next GNAT release as runtimes will now require being installed into the compiler. This commit also now generates automatically the board projects, to ease the addition of new boards and runtimes, as well as taking into account modifications refactoring of the library.
- Loading branch information
1 parent
2341eb5
commit 1ee78d5
Showing
56 changed files
with
639 additions
and
400 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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "embedded-runtimes"] | ||
path = embedded-runtimes | ||
url = https://github.com/AdaCore/embedded-runtimes.git | ||
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
with "config"; | ||
with "../../hal/HAL"; | ||
with "hal/HAL"; | ||
with "../cortex_m/cortex_m0"; | ||
|
||
library project nRF51 is | ||
|
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
4 changes: 2 additions & 2 deletions
4
arch/ARM/STM32/driver_demos/demo_L3GD20_fifo_int/demo_l3gd20_fifo_int.gpr
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
4 changes: 2 additions & 2 deletions
4
arch/ARM/STM32/driver_demos/demo_L3GD20_polling/demo_l3gd20.gpr
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
with "config"; | ||
with "../../hal/HAL"; | ||
with "hal/HAL"; | ||
|
||
library project Cortex_M0 is | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
with "config"; | ||
with "../../hal/HAL"; | ||
with "hal/HAL"; | ||
|
||
library project Cortex_M4 is | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
with "config"; | ||
with "../../hal/HAL"; | ||
with "hal/HAL"; | ||
|
||
library project Cortex_M4F is | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
with "config"; | ||
with "../../hal/HAL"; | ||
with "hal/HAL"; | ||
|
||
library project Cortex_M7 is | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
all: | ||
for gpr in *.gpr; do \ | ||
echo Building $$gpr; \ | ||
gprbuild -q -j0 -XPLATFORM_BUILD=Debug -P $$gpr -p; \ | ||
gprbuild -q -j0 -XPLATFORM_BUILD=Production -P $$gpr -p; \ | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
aggregate library project Crazyflie is | ||
|
||
Build := external ("BUILD", "Debug"); | ||
Board := "crazyflie"; | ||
|
||
type RTS_Type is ("ravenscar-sfp", "ravenscar-full"); | ||
RTS : RTS_Type := External ("RTS", "ravenscar-sfp"); | ||
type RTS_Profile_Type is ("ravenscar-sfp", "ravenscar-full"); | ||
RTS_Profile : RTS_Profile_Type := | ||
external ("RTS_Profile", "ravenscar-sfp"); | ||
|
||
type Build_Type is ("Debug", "Production"); | ||
Build : Build_Type := external ("PLATFORM_BUILD", "Production"); | ||
|
||
RTS_Base := Project'Project_Dir & | ||
"../embedded-runtimes/ravenscar-stm32f407disco"; | ||
for Target use "arm-eabi"; | ||
for Runtime ("Ada") use RTS_Profile & "-stm32f4"; | ||
|
||
case RTS is | ||
when "ravenscar-sfp" => | ||
for Runtime ("Ada") use RTS_Base & "/sfp"; | ||
when "ravenscar-full" => | ||
for Runtime ("Ada") use RTS_Base & "/full"; | ||
end case; | ||
Obj_Suffix := Board & "/" & RTS_Profile & "/" & Build; | ||
|
||
for Project_Path use ("crazyflie"); | ||
for Library_Name use Board; | ||
for Library_Dir use "lib/" & Obj_Suffix; | ||
|
||
for external ("Obj_Suffix") use Obj_Suffix; | ||
for external ("RTS_Profile") use RTS_Profile; | ||
for Project_Path use | ||
(Project'Project_Dir, Project'Project_Dir & ".."); | ||
for Project_Files use ("crazyflie/board.gpr"); | ||
|
||
for Library_Dir use "lib/crazyflie/" & RTS & "/" & Build; | ||
for Library_Name use "crazyflie"; | ||
|
||
end Crazyflie; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
aggregate library project Crazyflie_Full is | ||
|
||
Build := external ("BUILD", "Debug"); | ||
for External ("RTS") use "ravenscar-full"; | ||
Board := "crazyflie"; | ||
|
||
RTS_Profile := "ravenscar-full"; | ||
|
||
type Build_Type is ("Debug", "Production"); | ||
Build : Build_Type := external ("PLATFORM_BUILD", "Production"); | ||
|
||
RTS_Base := Project'Project_Dir & | ||
"../embedded-runtimes/ravenscar-stm32f407disco"; | ||
for Target use "arm-eabi"; | ||
for Runtime ("Ada") use RTS_Profile & "-stm32f4"; | ||
|
||
for Runtime ("Ada") use RTS_Base & "/full"; | ||
Obj_Suffix := Board & "/" & RTS_Profile & "/" & Build; | ||
|
||
for Project_Path use ("crazyflie"); | ||
for Library_Name use Board; | ||
for Library_Dir use "lib/" & Obj_Suffix; | ||
|
||
for external ("Obj_Suffix") use Obj_Suffix; | ||
for external ("RTS_Profile") use RTS_Profile; | ||
for Project_Path use | ||
(Project'Project_Dir, Project'Project_Dir & ".."); | ||
for Project_Files use ("crazyflie/board.gpr"); | ||
|
||
for Library_Dir use "lib/crazyflie/ravenscar-full/" & Build; | ||
for Library_Name use "crazyflie"; | ||
|
||
end Crazyflie_Full; |
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,24 @@ | ||
aggregate library project Crazyflie_SFP is | ||
|
||
Board := "crazyflie"; | ||
|
||
RTS_Profile := "ravenscar-sfp"; | ||
|
||
type Build_Type is ("Debug", "Production"); | ||
Build : Build_Type := external ("PLATFORM_BUILD", "Production"); | ||
|
||
for Target use "arm-eabi"; | ||
for Runtime ("Ada") use RTS_Profile & "-stm32f4"; | ||
|
||
Obj_Suffix := Board & "/" & RTS_Profile & "/" & Build; | ||
|
||
for Library_Name use Board; | ||
for Library_Dir use "lib/" & Obj_Suffix; | ||
|
||
for external ("Obj_Suffix") use Obj_Suffix; | ||
for external ("RTS_Profile") use RTS_Profile; | ||
for Project_Path use | ||
(Project'Project_Dir, Project'Project_Dir & ".."); | ||
for Project_Files use ("crazyflie/board.gpr"); | ||
|
||
end Crazyflie_SFP; |
Oops, something went wrong.