Skip to content

Commit

Permalink
Kconfig.zephyr: allow override default values in module Kconfig files
Browse files Browse the repository at this point in the history
Allow Kconfig to override default values of Kconfig symbols
defined in modules' Kconfig files. For that, the .defonfig
files need to be source'd before the modules' Kconfig files.

Signed-off-by: Ioannis Glaropoulos <[email protected]>
  • Loading branch information
ioannisg authored and nashif committed Dec 10, 2020
1 parent e42c5ca commit c520385
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
# Copyright (c) 2016 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

menu "Modules"

source "$(KCONFIG_BINARY_DIR)/Kconfig.modules"
source "modules/Kconfig"

endmenu

# Include Kconfig.defconfig files first so that they can override defaults and
# other symbol/choice properties by adding extra symbol/choice definitions.
Expand All @@ -24,6 +18,13 @@ source "$(KCONFIG_BINARY_DIR)/Kconfig.shield.defconfig"
source "$(BOARD_DIR)/Kconfig.defconfig"
source "$(KCONFIG_BINARY_DIR)/Kconfig.soc.defconfig"

menu "Modules"

source "$(KCONFIG_BINARY_DIR)/Kconfig.modules"
source "modules/Kconfig"

endmenu

source "boards/Kconfig"
source "soc/Kconfig"
source "arch/Kconfig"
Expand Down

0 comments on commit c520385

Please sign in to comment.