summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-15 11:22:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-15 11:23:59 +0100
commit04c66de8abfd820380fcfc2882b84650ac0220d5 (patch)
tree8fdb448947941855967c4c22dd406099a0403f8e
parent79e3952527bcad4008796d50dcbca3024b7cb1ea (diff)
downloadpoky-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.bbclass11
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() {
7EXPORT_FUNCTIONS do_configure 7EXPORT_FUNCTIONS do_configure
8addtask configure after do_unpack do_patch before do_compile 8addtask configure after do_unpack do_patch before do_compile
9 9
10do_menuconfig() { 10inherit terminal
11 export TERMWINDOWTITLE="${PN} Configuration" 11
12 export SHELLCMDS="make menuconfig" 12python 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}
18do_menuconfig[nostamp] = "1" 15do_menuconfig[nostamp] = "1"
19addtask menuconfig after do_configure 16addtask menuconfig after do_configure