diff options
author | Stefan Müller-Klieser <s.mueller-klieser@phytec.de> | 2015-08-10 17:22:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-11 08:54:44 -0700 |
commit | fd8880aee4f0f8a535616ef312b283f401f64c7c (patch) | |
tree | 3fc182a745438685f852fac137df651157033d05 | |
parent | 08a938adbeb809dd3ea3f30ffe8f8bc2c37ed4b1 (diff) | |
download | openembedded-core-fd8880aee4f0f8a535616ef312b283f401f64c7c.tar.gz openembedded-core-fd8880aee4f0f8a535616ef312b283f401f64c7c.tar.bz2 openembedded-core-fd8880aee4f0f8a535616ef312b283f401f64c7c.zip |
cml1.bbclass: make menuconfig task configurable
Menuconfig is sometimes not the most convenient way to configure a
kernel, as the default color scheme can be hard to read. This variable
gives you access to the MENUCONFIG_COLOR variable or lets you select
nconfig, e.g. by setting it in your local.conf:
KCONFIG_CONFIG_COMMAND = "MENUCONFIG_COLOR=mono menuconfig"
or
KCONFIG_CONFIG_COMMAND = "nconfig"
Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/classes/cml1.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass index 43acfd531b..95cf584ad8 100644 --- a/meta/classes/cml1.bbclass +++ b/meta/classes/cml1.bbclass @@ -16,6 +16,7 @@ CROSS_CURSES_LIB = "-lncurses -ltinfo" CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" +KCONFIG_CONFIG_COMMAND ??= "menuconfig" python do_menuconfig() { import shutil @@ -25,7 +26,7 @@ python do_menuconfig() { except OSError: mtime = 0 - oe_terminal("${SHELL} -c \"make menuconfig; if [ \$? -ne 0 ]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r; fi\"", '${PN} Configuration', d) + oe_terminal("${SHELL} -c \"make ${KCONFIG_CONFIG_COMMAND}; if [ \$? -ne 0 ]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r; fi\"", '${PN} Configuration', d) # FIXME this check can be removed when the minimum bitbake version has been bumped if hasattr(bb.build, 'write_taint'): |