Skip to content

Commit d6dbf1c

Browse files
committed
makefiles/kconfig.mk: Remove TEST_KCONFIG dep modelling
1 parent 20fcb1d commit d6dbf1c

File tree

1 file changed

+5
-31
lines changed

1 file changed

+5
-31
lines changed

makefiles/kconfig.mk

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,9 @@ export KCONFIG_EXTERNAL_MODULE_CONFIGS = $(GENERATED_DIR)/Kconfig.external_modul
3232
# This file will contain external package configurations
3333
export KCONFIG_EXTERNAL_PKG_CONFIGS = $(GENERATED_DIR)/Kconfig.external_pkgs
3434

35-
# Add configurations that only work when running the Kconfig test so far,
36-
# because they activate modules.
37-
ifeq (1,$(TEST_KCONFIG))
38-
# This file will contain application default configurations
39-
KCONFIG_APP_CONFIG = $(APPDIR)/app.config.test
40-
# This configuration enables modules that are only available when using Kconfig
41-
# module modelling
42-
# Bring in all board specific configurations if present
43-
ifneq (,$(wildcard $(BOARDDIR)/$(BOARD).config))
44-
KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config
45-
endif
46-
else
47-
# This file will contain application default configurations
48-
KCONFIG_APP_CONFIG = $(APPDIR)/app.config
49-
endif
35+
# This file will contain application default configurations
36+
KCONFIG_APP_CONFIG = $(APPDIR)/app.config
37+
5038

5139
# Default and user overwritten configurations
5240
KCONFIG_USER_CONFIG = $(APPDIR)/user.config
@@ -92,7 +80,7 @@ $(GENERATED_DIR): $(if $(MAKE_RESTARTS),,$(CLEAN))
9280
# - A previous configuration file is present (e.g. from a previous call to
9381
# menuconfig)
9482
# - menuconfig is being called
95-
# - SHOULD_RUN_KCONFIG or TEST_KCONFIG is set
83+
# - SHOULD_RUN_KCONFIG is set
9684
#
9785
# By default SHOULD_RUN_KCONFIG is set if any of the following is true:
9886
# - A file with '.config' extension is present in the application directory
@@ -120,16 +108,6 @@ ifneq (,$(if $(CLEAN),,$(wildcard $(KCONFIG_OUT_CONFIG))))
120108
SHOULD_RUN_KCONFIG := 1
121109
endif
122110

123-
# When testing Kconfig we should always run it
124-
ifeq (1,$(TEST_KCONFIG))
125-
SHOULD_RUN_KCONFIG := 1
126-
endif
127-
128-
# Expose DEVELHELP to kconfig
129-
ifeq (1,$(DEVELHELP))
130-
RIOT_CONFIG_DEVELHELP ?= y
131-
endif
132-
133111
# export variable to make it visible in other Makefiles
134112
export SHOULD_RUN_KCONFIG
135113

@@ -158,11 +136,7 @@ menuconfig: $(MENUCONFIG) $(KCONFIG_OUT_CONFIG)
158136
$(Q)KCONFIG_CONFIG=$(KCONFIG_OUT_CONFIG) $(MENUCONFIG) $(KCONFIG)
159137
$(MAKE) $(KCONFIG_GENERATED_AUTOCONF_HEADER_C)
160138

161-
# Variable used to conditionally depend on KCONFIG_GENERATED_DEPDENDENCIES
162-
# When testing Kconfig module modelling this file is not needed
163-
ifneq (1, $(TEST_KCONFIG))
164-
GENERATED_DEPENDENCIES_DEP = $(KCONFIG_GENERATED_DEPENDENCIES)
165-
endif
139+
GENERATED_DEPENDENCIES_DEP = $(KCONFIG_GENERATED_DEPENDENCIES)
166140

167141
# These rules are not included when only calling `make clean` in
168142
# order to keep the $(BINDIR) directory clean.

0 commit comments

Comments
 (0)