refactor: rearrange Kconfig inclusion order

This makes it possible to override ZMK Kconfig options from shields.
This commit is contained in:
Xudong Zheng 2023-05-20 12:46:26 -04:00
parent cd25c12ce9
commit 808fa93377

View file

@ -1,6 +1,13 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.defconfig"
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.shield"
rsource "boards/shields/*/Kconfig.defconfig"
rsource "boards/shields/*/Kconfig.shield"
rsource "boards/Kconfig"
mainmenu "ZMK Firmware"
menu "ZMK"
@ -717,12 +724,5 @@ module = ZMK
module-str = zmk
source "subsys/logging/Kconfig.template.log_config"
rsource "boards/Kconfig"
rsource "boards/shields/*/Kconfig.defconfig"
rsource "boards/shields/*/Kconfig.shield"
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.defconfig"
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.shield"
source "Kconfig.zephyr"