AdaCore / Ada_Drivers_Library

Ada source code and complete sample GNAT projects for selected bare-board platforms supported by GNAT.
BSD 3-Clause "New" or "Revised" License
240 stars 141 forks source link

Remove submodule embedded-runtimes #182

Closed lambourg closed 7 years ago

lambourg commented 7 years ago

This pull request prepares the coming changes in embedded runtimes installation, where runtimes will need to be installed before being able to use them.

To help transitioning the project files to the new schema, an automated project generator has been implemented to generate automatically the board projects. Those have been updated accordingly.

Finally, in order to test the changes, I tried to rebuild the examples and the STM32 driver demos, and came through various errors unrelated to the current change, but I still fixed those in the same branch, to ensure that this fix does not bring regressions.

lambourg commented 7 years ago

For the record: starting with commit 1fa76dc, I managed to get rid of the aggregate projects usage in the board projects.

Pro: much nicer project hierarchy, make it easier to have board definitions outside of the Ada_Driver_Library repository, allow aggregate projects to use the ada drivers library board definitions.

Cons: we can't rely anymore on all object files to be in separate directories, depending on the choice of boards/rts/build mode. This leads to significant rebuilds when changing build mode or runtime profiles.

lambourg commented 7 years ago

Note that I took the opportunity to rebase my demos on this branch and this lead to many regressions in the bitmap buffers and more generally the framebuffer support on the STM32 boards.

This should now be fixed, mostly.

In particular:

Also the performances of the graphics primitive are now improved, with careful allocation between dispatching calls vs. direct field access.

lambourg commented 7 years ago

I think there's a risk that we will not compile for each variant during testing, we will need one example for each.

We can try building the various board projects.

lambourg commented 7 years ago

Closing, superseeded by #204