Skip to content

Commit a99965d

Browse files
committed
Add the portable python programs for kconfig
Signed-off-by: Anders F Björklund <[email protected]>
1 parent cbd3038 commit a99965d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ ZIP ?= zip
88
PLANTUML ?= plantuml # may also be "java -jar plantuml.jar" if installed elsewhere
99

1010
# The KCONFIG programs are only needed for re-generating the ".config" file.
11-
KCONFIG_CONF ?= kconfig-conf
12-
KCONFIG_MCONF ?= kconfig-mconf
11+
# You can install the python "kconfiglib", if you don't have kconfig/kbuild.
12+
KCONFIG_CONF ?= $(shell command -v kconfig-conf || command -v kbuild-conf || echo oldconfig)
13+
KCONFIG_MCONF ?= $(shell command -v kconfig-mconf || command -v kbuild-mconf || echo menuconfig)
1314

1415
GOOS ?= $(shell $(GO) env GOOS)
1516
ifeq ($(GOOS),windows)
@@ -68,6 +69,7 @@ config: Kconfig
6869
$(KCONFIG_CONF) $<
6970

7071
menuconfig: Kconfig
72+
MENUCONFIG_STYLE=aquatic \
7173
$(KCONFIG_MCONF) $<
7274

7375
# Copy the default config, if not overridden locally

0 commit comments

Comments
 (0)