1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/kconfig: include out.config only when running Kconfig

This commit is contained in:
Leandro Lanzieri 2021-02-22 15:58:04 +01:00
parent 2f919877c0
commit 017fc36c7b
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -43,11 +43,6 @@ KCONFIG_OUT_CONFIG = $(GENERATED_DIR)/out.config
# whenever a change occurs on one of the previously used Kconfig files.
KCONFIG_OUT_DEP = $(KCONFIG_OUT_CONFIG).d
# Include configuration symbols if available. This allows to check for Kconfig
# symbols in makefiles. Make tries to 'remake' all included files (see
# https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html).
-include $(KCONFIG_OUT_CONFIG)
# Add configurations to merge, in ascendent priority (i.e. a file overrides the
# previous ones).
#
@ -101,6 +96,11 @@ export SHOULD_RUN_KCONFIG
ifneq (,$(SHOULD_RUN_KCONFIG))
# Include configuration symbols if available. This allows to check for Kconfig
# symbols in makefiles. Make tries to 'remake' all included files (see
# https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html).
-include $(KCONFIG_OUT_CONFIG)
# Add configuration header to build dependencies
BUILDDEPS += $(KCONFIG_GENERATED_AUTOCONF_HEADER_C) $(FIXDEP)