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
236 stars 141 forks source link

Make HAL packages preelaborable #399

Closed JeremyGrosser closed 2 years ago

JeremyGrosser commented 2 years ago

I'd like to add pragma Preelaborate to a few packages in rp2040_hal, but I can't do this as long as there's a dependency on the HAL packages, which are not preelaborated. Could we add Preelaborate to the HAL packages in ADL?

Fabien-Chouteau commented 2 years ago

They should all be "preelaborable". You can try to submit a patch and we'll see if the builds pass.