Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make: fix FEATURES_REQUIRED and FEATURES_PROVIDED a bit #1879

Merged
merged 3 commits into from
Oct 28, 2014
Merged

make: fix FEATURES_REQUIRED and FEATURES_PROVIDED a bit #1879

merged 3 commits into from
Oct 28, 2014

Conversation

Kijewski
Copy link
Contributor

See individual diffs for more information.

Fixes #1876

This PR introduces `FEATURES_OPTIONAL` which can be used to tell the
Make system, that the application would like to use some feature, but
the build should proceed even if the selected board cannot provide the
optional feature.

`make buildtest` and `make info-supported-boards` heed this variable
when examining the list of supported boards.

If a word is present in `FEATURES_REQUIRED` and `FEATURES_OPTIONAL`,
then `FEATURES_OPTIONAL` takes precedence.
All used feature requests (both in `FEATURES_REQUIRED` and
`FEATURES_OPTIONAL`) that could be satisfied get exposed to C with
`-DFEATURE_ABC`.
@Kijewski Kijewski added Area: build system Area: Build system Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Oct 26, 2014
@Kijewski Kijewski added this to the Release NEXT MAJOR milestone Oct 26, 2014
This change allows drivers (or any module for that matter) to provide
features. This is e.g. useful if a board does not have a transceiver,
but your application uses `USEMODULE += some_driver`, which implements
the transceiver interface.

The line `FEATURES_PROVIDED += some_feature` should go to the guarded
block in `{sys,drivers}/Makefile.include`.
@OlegHahm
Copy link
Member

Shouldn't this be split up into two PRs?

@Kijewski
Copy link
Contributor Author

Shouldn't this be split up into two PRs?

Nah, it would needlessly add overhead for me to maintain two PRs.

@OlegHahm
Copy link
Member

Looks good. This is half-an-ACK, because my Kung-Fu is not strong enough.

@OlegHahm OlegHahm assigned LudwigKnuepfer and unassigned OlegHahm Oct 27, 2014
@LudwigKnuepfer
Copy link
Member

ACK

LudwigKnuepfer added a commit that referenced this pull request Oct 28, 2014
make: fix `FEATURES_REQUIRED` and `FEATURES_PROVIDED` a bit
@LudwigKnuepfer LudwigKnuepfer merged commit 1fc5bd4 into RIOT-OS:master Oct 28, 2014
@Kijewski Kijewski deleted the issue-1876 branch October 28, 2014 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

examples/default buildtest builds only for boards with a transceiver
3 participants