summaryrefslogtreecommitdiffstats
path: root/meta/classes/cml1.bbclass
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-08-10 17:22:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-11 09:28:50 -0700
commit69790b007f1527edbcb9727f2a04065c1eab460c (patch)
tree32e6cdb87f98a0c86486b5662d2d71511adcdff6 /meta/classes/cml1.bbclass
parentd2598bf39631568cf9149898d83076fc84565d65 (diff)
downloadpoky-69790b007f1527edbcb9727f2a04065c1eab460c.tar.gz
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" (From OE-Core rev: fd8880aee4f0f8a535616ef312b283f401f64c7c) Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cml1.bbclass')
-rw-r--r--meta/classes/cml1.bbclass3
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"
16CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' 16CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"'
17TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" 17TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo"
18 18
19KCONFIG_CONFIG_COMMAND ??= "menuconfig"
19python do_menuconfig() { 20python do_menuconfig() {
20 import shutil 21 import shutil
21 22
@@ -25,7 +26,7 @@ python do_menuconfig() {
25 except OSError: 26 except OSError:
26 mtime = 0 27 mtime = 0
27 28
28 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) 29 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)
29 30
30 # FIXME this check can be removed when the minimum bitbake version has been bumped 31 # FIXME this check can be removed when the minimum bitbake version has been bumped
31 if hasattr(bb.build, 'write_taint'): 32 if hasattr(bb.build, 'write_taint'):