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>
This commit is contained in:
Richard Purdie 2011-09-15 11:22:39 +01:00
parent 79e3952527
commit 04c66de8ab
1 changed files with 4 additions and 7 deletions

View File

@ -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