-
- Downloads
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: ```make FEATURES_PROVIDED = transceiver ``` An application can have a corresponding line ```make FEATURES_REQUIRED = transceiver ``` 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 "defaulttransceiver". `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 `BOARD_BLACKLIST`. Applications don't have to use this new feature. This change does not break existing Makefile.
Showing
- Makefile.buildtests 41 additions, 9 deletionsMakefile.buildtests
- Makefile.dep 4 additions, 0 deletionsMakefile.dep
- Makefile.include 41 additions, 17 deletionsMakefile.include
- boards/avsextrem/Makefile.features 1 addition, 0 deletionsboards/avsextrem/Makefile.features
- boards/chronos/Makefile.features 1 addition, 0 deletionsboards/chronos/Makefile.features
- boards/iot-lab_M3/Makefile.features 1 addition, 0 deletionsboards/iot-lab_M3/Makefile.features
- boards/msb-430h/Makefile.features 1 addition, 0 deletionsboards/msb-430h/Makefile.features
- boards/msba2/Makefile.features 1 addition, 0 deletionsboards/msba2/Makefile.features
- boards/native/Makefile.features 1 addition, 0 deletionsboards/native/Makefile.features
- boards/pttu/Makefile.features 2 additions, 0 deletionsboards/pttu/Makefile.features
- boards/redbee-econotag/Makefile.features 1 addition, 0 deletionsboards/redbee-econotag/Makefile.features
- boards/telosb/Makefile.features 1 addition, 0 deletionsboards/telosb/Makefile.features
- boards/wsn430-v1_3b/Makefile.features 1 addition, 0 deletionsboards/wsn430-v1_3b/Makefile.features
- boards/wsn430-v1_4/Makefile.features 1 addition, 0 deletionsboards/wsn430-v1_4/Makefile.features
- boards/z1/Makefile.features 1 addition, 0 deletionsboards/z1/Makefile.features
- examples/ccn-lite-client/Makefile 0 additions, 16 deletionsexamples/ccn-lite-client/Makefile
- examples/ccn-lite-relay/Makefile 0 additions, 16 deletionsexamples/ccn-lite-relay/Makefile
- examples/rpl_udp/Makefile 2 additions, 15 deletionsexamples/rpl_udp/Makefile
- tests/net_if/Makefile 0 additions, 13 deletionstests/net_if/Makefile
- tests/pnet/Makefile 0 additions, 15 deletionstests/pnet/Makefile
Loading
Please register or sign in to comment