Commit Graph

9 Commits (pr/rotary)

Author SHA1 Message Date
Hauke Petersen ddb8765ee4 boards/z1: adjusted to UART changes 8 years ago
Hauke Petersen 528e832c90 boards: cleaned up entries in Makefile.features 8 years ago
Hauke Petersen ce6b1d390a boards/z1: added SPI configuration 8 years ago
Hauke Petersen 78fb698eb7 boards/z1: added GPIO feature 8 years ago
Hauke Petersen 2e9403d8fe board/z1: added (x)timer configuration 8 years ago
Hauke Petersen bff1d7e73e boards: remove feature 'transceiver' 8 years ago
Philipp Rosenkranz 02d0c88284 tests/travis: split buildtests into MCU groups. 8 years ago
René Kijewski 765c88d08a make: allow drivers to implement features
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`.
9 years ago
René Kijewski f49bd3e660 make: add Makefile.features telling the BOARDs' features
Please see #1715.
Closes #1715.

This PR implements the new Makefile variables "FEATURES_PROVIDED" and
"FEATURES_REQUIRED". A board *can* have a new file `Makefile.features`
which looks like:


An application can have a corresponding line


If the selected BOARD does not fulfil the requirements of the
application, then a *warning* is issued at compile time.

This change only includes the feature "transceiver", further features
are expected to be listed in further PRs. The requirement "transceiver"
is automatically added if the application uses the module

`make buildtest` understands the new feature listing, so the user won't
need to add boards to `BOARD_BLACKLIST` manually.

Part of the change are the added Make targets
* `info-features-missing`, which prints the required features
  `\setminus` the provided features. The output is empty if there are no
  features missing.
* `info-boards-features-missing`, the same as `info-features-missing`
  but as a table for all boards, but heeded `BOARD_WHITELIST` and

Applications don't have to use this new feature. This change does not
break existing Makefile.
9 years ago