refactor(Kconfig): Set USB default based on hardware capabilities
Removes the USB default under every split right half in favor of a default based on hardware capabilities in the main app Kconfig.
This commit is contained in:
parent
af563e9dbc
commit
002a89765f
14 changed files with 3 additions and 39 deletions
|
@ -361,6 +361,9 @@ config KERNEL_BIN_NAME
|
||||||
config REBOOT
|
config REBOOT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config USB
|
||||||
|
default y if HAS_HW_NRF_USBD
|
||||||
|
|
||||||
module = ZMK
|
module = ZMK
|
||||||
module-str = zmk
|
module-str = zmk
|
||||||
source "subsys/logging/Kconfig.template.log_config"
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
|
|
|
@ -16,9 +16,6 @@ if SHIELD_BFO9000_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "BFO9000 Right"
|
default "BFO9000 Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_BFO9000_LEFT || SHIELD_BFO9000_RIGHT
|
if SHIELD_BFO9000_LEFT || SHIELD_BFO9000_RIGHT
|
||||||
|
|
|
@ -12,9 +12,6 @@ if SHIELD_CORNE_RIGHT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Corne Right"
|
default "Corne Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,6 @@ if SHIELD_CRADIO_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "cradio right"
|
default "cradio right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_CRADIO_LEFT || SHIELD_CRADIO_RIGHT
|
if SHIELD_CRADIO_LEFT || SHIELD_CRADIO_RIGHT
|
||||||
|
|
|
@ -16,9 +16,6 @@ if SHIELD_HELIX_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Helix Right"
|
default "Helix Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_HELIX_LEFT || SHIELD_HELIX_RIGHT
|
if SHIELD_HELIX_LEFT || SHIELD_HELIX_RIGHT
|
||||||
|
|
|
@ -16,9 +16,6 @@ if SHIELD_IRIS_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Iris Right"
|
default "Iris Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_IRIS_LEFT || SHIELD_IRIS_RIGHT
|
if SHIELD_IRIS_LEFT || SHIELD_IRIS_RIGHT
|
||||||
|
|
|
@ -14,9 +14,6 @@ if SHIELD_JIAN_RIGHT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Jian Right"
|
default "Jian Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,6 @@ if SHIELD_JORNE_RIGHT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Jorne Right"
|
default "Jorne Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,6 @@ if SHIELD_KYRIA_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Kyria Right"
|
default "Kyria Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_KYRIA_LEFT || SHIELD_KYRIA_RIGHT
|
if SHIELD_KYRIA_LEFT || SHIELD_KYRIA_RIGHT
|
||||||
|
|
|
@ -14,9 +14,6 @@ if SHIELD_LILY58_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Lily58 Right"
|
default "Lily58 Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_LILY58_LEFT || SHIELD_LILY58_RIGHT
|
if SHIELD_LILY58_LEFT || SHIELD_LILY58_RIGHT
|
||||||
|
|
|
@ -17,9 +17,6 @@ if SHIELD_MICRODOX_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Microdox Right"
|
default "Microdox Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_MICRODOX_LEFT || SHIELD_MICRODOX_RIGHT
|
if SHIELD_MICRODOX_LEFT || SHIELD_MICRODOX_RIGHT
|
||||||
|
|
|
@ -17,9 +17,6 @@ if SHIELD_QUEFRENCY_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Quefrency Right"
|
default "Quefrency Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_QUEFRENCY_LEFT || SHIELD_QUEFRENCY_RIGHT
|
if SHIELD_QUEFRENCY_LEFT || SHIELD_QUEFRENCY_RIGHT
|
||||||
|
|
|
@ -16,9 +16,6 @@ if SHIELD_SOFLE_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Sofle Right"
|
default "Sofle Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_SOFLE_LEFT || SHIELD_SOFLE_RIGHT
|
if SHIELD_SOFLE_LEFT || SHIELD_SOFLE_RIGHT
|
||||||
|
|
|
@ -18,9 +18,6 @@ if SHIELD_SPLITREUS62_RIGHT
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "Splitreus62 Right"
|
default "Splitreus62 Right"
|
||||||
|
|
||||||
config USB
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_SPLITREUS62_LEFT || SHIELD_SPLITREUS62_RIGHT
|
if SHIELD_SPLITREUS62_LEFT || SHIELD_SPLITREUS62_RIGHT
|
||||||
|
|
Loading…
Reference in a new issue