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 09:28:50 -0700 |
| commit | 69790b007f1527edbcb9727f2a04065c1eab460c (patch) | |
| tree | 32e6cdb87f98a0c86486b5662d2d71511adcdff6 | |
| parent | d2598bf39631568cf9149898d83076fc84565d65 (diff) | |
| download | poky-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>
| -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" | |||
| 16 | CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' | 16 | CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' |
| 17 | TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" | 17 | TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" |
| 18 | 18 | ||
| 19 | KCONFIG_CONFIG_COMMAND ??= "menuconfig" | ||
| 19 | python do_menuconfig() { | 20 | python 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'): |
