-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Is your feature request related to a problem? Please describe.
I want to be able to configure the board peripherals before the shield. If my overlay configures the peripheral in one way, and the shield in another, I want the default configuration to come from the overlay, and then the shield will make the changes on that. Currently it processes the shield before, and then the overlay, overriding the shield configurations.
Describe the solution you'd like
It should process the board dts (DTS_SOURCE) firstly. Then the board overlay (add a new cmake variable such as DTC_BOARD_OVERLAY), then the shields, and lastly all the other overlays (DTC_OVERLAY_FILE).
Describe alternatives you've considered
There is no good alternative, because if I don't want shields to be overridden, I should have the same peripheral configuration also in the board overlay, and that removes the meaning of a shield.