diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-15 11:22:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-15 11:23:59 +0100 |
commit | 04c66de8abfd820380fcfc2882b84650ac0220d5 (patch) | |
tree | 8fdb448947941855967c4c22dd406099a0403f8e | |
parent | 79e3952527bcad4008796d50dcbca3024b7cb1ea (diff) | |
download | poky-04c66de8abfd820380fcfc2882b84650ac0220d5.tar.gz |
cml1/kernel: Update do_menuconfig to use oe.terminal()
The recent environment fixes broke the menuconfig task since it couldn't access
variables like DISPLAY. This patch updates it to use oe.terminal instead
allowing it to work again.
(From OE-Core rev: e876a44fa8ed0aa2e09084c1e7ddfc876c3f981b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/cml1.bbclass | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass index a747af5e4d..d429188c70 100644 --- a/meta/classes/cml1.bbclass +++ b/meta/classes/cml1.bbclass | |||
@@ -7,13 +7,10 @@ cml1_do_configure() { | |||
7 | EXPORT_FUNCTIONS do_configure | 7 | EXPORT_FUNCTIONS do_configure |
8 | addtask configure after do_unpack do_patch before do_compile | 8 | addtask configure after do_unpack do_patch before do_compile |
9 | 9 | ||
10 | do_menuconfig() { | 10 | inherit terminal |
11 | export TERMWINDOWTITLE="${PN} Configuration" | 11 | |
12 | export SHELLCMDS="make menuconfig" | 12 | python do_menuconfig() { |
13 | ${TERMCMDRUN} | 13 | oe_terminal("make menuconfig", '${PN} Configuration', d) |
14 | if [ $? -ne 0 ]; then | ||
15 | oefatal "'${TERMCMD}' not found. Check TERMCMD variable." | ||
16 | fi | ||
17 | } | 14 | } |
18 | do_menuconfig[nostamp] = "1" | 15 | do_menuconfig[nostamp] = "1" |
19 | addtask menuconfig after do_configure | 16 | addtask menuconfig after do_configure |