refactor: rearrange Kconfig inclusion order
This makes it possible to override ZMK Kconfig options from shields.
This commit is contained in:
parent
cd25c12ce9
commit
808fa93377
1 changed files with 7 additions and 7 deletions
14
app/Kconfig
14
app/Kconfig
|
@ -1,6 +1,13 @@
|
||||||
# Copyright (c) 2020 The ZMK Contributors
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# 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"
|
mainmenu "ZMK Firmware"
|
||||||
|
|
||||||
menu "ZMK"
|
menu "ZMK"
|
||||||
|
@ -717,12 +724,5 @@ module = ZMK
|
||||||
module-str = zmk
|
module-str = zmk
|
||||||
source "subsys/logging/Kconfig.template.log_config"
|
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"
|
source "Kconfig.zephyr"
|
||||||
|
|
Loading…
Add table
Reference in a new issue