Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ endif

# Menuconfig
.PHONY: config
KCONFIGLIB_AVAILABLE := $(shell python3 -c "import kconfiglib" >/dev/null 2>&1 && echo 1 || echo 0)

config: configs/Kconfig
ifeq ($(KCONFIGLIB_AVAILABLE),1)
@echo ">>> Using Kconfiglib"
@python3 -m menuconfig $<
@python3 -m genconfig $<
else
@echo ">>> Falling back to local tools"
@tools/kconfig/menuconfig.py $<
@tools/kconfig/genconfig.py $<
endif
2 changes: 1 addition & 1 deletion tools/kconfig/menuconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@

_STYLES = {
"default": """
path=fg:white,bg:back,bold
path=fg:white,bg:black,bold
separator=fg:white,bg:blue,bold
list=fg:white,bg:black
selection=fg:black,bg:white,bold
Expand Down