Skip to content

Commit

Permalink
Merge pull request #1917 from OlegHahm/config_feature_cleanup
Browse files Browse the repository at this point in the history
Config feature cleanup
  • Loading branch information
OlegHahm committed Dec 30, 2014
2 parents e6c4181 + aef6256 commit e60d25d
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ include $(RIOTBOARD)/$(BOARD)/Makefile.include
include $(RIOTCPU)/$(CPU)/Makefile.include
include $(RIOTBASE)/Makefile.dep

USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))

ifeq ($(strip $(MCU)),)
MCU = $(CPU)
endif
Expand Down
2 changes: 1 addition & 1 deletion Makefile.modules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(RIOTBASE)/Makefile.pseudomodules
include $(RIOTBASE)/Makefile.defaultmodules

USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))
USEMODULE := $(filter-out $(filter-out $(FEATURES_PROVIDED), $(FEATURES_OPTIONAL)), $(sort $(USEMODULE)))

INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
ED = $(patsubst %,-DMODULE_%,$(subst -,_,$(USEMODULE) $(USEPKG)))
Expand Down
2 changes: 1 addition & 1 deletion boards/chronos/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FEATURES_PROVIDED = transceiver periph_rtc
FEATURES_PROVIDED += transceiver periph_rtc
2 changes: 1 addition & 1 deletion boards/msb-430h/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FEATURES_PROVIDED += transceiver
FEATURES_PROVIDED += transceiver config
2 changes: 1 addition & 1 deletion boards/msba2/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FEATURES_PROVIDED += transceiver periph_pwm periph_rtc cpp
FEATURES_PROVIDED += transceiver periph_pwm periph_rtc cpp config
2 changes: 1 addition & 1 deletion boards/native/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FEATURES_PROVIDED += transceiver periph_cpuid cpp
FEATURES_PROVIDED += transceiver periph_cpuid config cpp
FEATURES_PROVIDED += periph_random
FEATURES_PROVIDED += periph_rtc
2 changes: 1 addition & 1 deletion boards/wsn430-v1_3b/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FEATURES_PROVIDED += transceiver
FEATURES_PROVIDED += transceiver config
2 changes: 1 addition & 1 deletion boards/wsn430-v1_4/Makefile.features
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FEATURES_PROVIDED += transceiver
FEATURES_PROVIDED += transceiver config
1 change: 1 addition & 0 deletions drivers/at86rf231/at86rf231.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "kernel_types.h"
#include "transceiver.h"
#include "hwtimer.h"
#include "config.h"

#define ENABLE_DEBUG (0)
#include "debug.h"
Expand Down
4 changes: 2 additions & 2 deletions examples/default/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ USEMODULE += shell_commands
USEMODULE += ps
USEMODULE += vtimer
USEMODULE += defaulttransceiver
USEMODULE += config

FEATURES_OPTIONAL += transceiver
FEATURES_OPTIONAL += config
FEATURES_OPTIONAL += periph_rtc

ifneq (,$(filter msb-430,$(BOARD)))
Expand All @@ -46,12 +48,10 @@ ifneq (,$(filter msba2,$(BOARD)))
USEMODULE += sht11
USEMODULE += ltc4150
USEMODULE += mci
USEMODULE += config
USEMODULE += random
endif
ifneq (,$(filter native,$(BOARD)))
USEMODULE += ltc4150
USEMODULE += config
USEMODULE += random
endif
ifneq (,$(filter iot-lab_M3,$(BOARD)))
Expand Down

0 comments on commit e60d25d

Please sign in to comment.