Makefile.include: check FEATURES_CONFLICT against FEATURES_USED#8925
Conversation
The FEATURES_CONFLICT check should be done on used features to also test for included optional features.
|
Works as expected and I can repeat the same for the EFM32. ACK |
|
(since this affects the Makefiles, do we need another ACK, @cladmi, @kaspar030?) |
|
I wonder if there's some logic we can implement so that having two optional but conflicting features would select one, or that requiring one conflicting with an optional would just not select the optional. |
|
@kaspar030 I think the second case could be quite easily done but it would be a new feature where here it's just fixing the check. With the way it's done now, to handle the one required and one optional case, I would do it with a state in in the Makefile.dep iterations. In the first iterations, optional features are not taken in to account, then when USEMODULE is stable, keep iterating and integrate the optional features that do not conflict until USEMODULE is stable again. |
|
ok! |
…es_conflict Makefile.include: check FEATURES_CONFLICT against FEATURES_USED
The FEATURES_CONFLICT check should be done on used features to also
test for included optional features.
Contribution description
This make the FEATURES_CONFLICT test detect conflict with optional features included.
It can be tested with:
FEATURES_OPTIONAL="periph_dac periph_spi" make -C examples/hello-world/Issues/PRs references
It will allow using FEATURES_CONFLICT for #8890