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:22:39 +0100 |
commit | e876a44fa8ed0aa2e09084c1e7ddfc876c3f981b (patch) | |
tree | e84c79d47967a25c6bbd355e4a7f4bed5b496730 /meta/classes | |
parent | 80f930550b696c92f2fab25a4ee8f7d51d4f1860 (diff) | |
download | openembedded-core-e876a44fa8ed0aa2e09084c1e7ddfc876c3f981b.tar.gz openembedded-core-e876a44fa8ed0aa2e09084c1e7ddfc876c3f981b.tar.bz2 openembedded-core-e876a44fa8ed0aa2e09084c1e7ddfc876c3f981b.zip |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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() { EXPORT_FUNCTIONS do_configure addtask configure after do_unpack do_patch before do_compile -do_menuconfig() { - export TERMWINDOWTITLE="${PN} Configuration" - export SHELLCMDS="make menuconfig" - ${TERMCMDRUN} - if [ $? -ne 0 ]; then - oefatal "'${TERMCMD}' not found. Check TERMCMD variable." - fi +inherit terminal + +python do_menuconfig() { + oe_terminal("make menuconfig", '${PN} Configuration', d) } do_menuconfig[nostamp] = "1" addtask menuconfig after do_configure |