summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-31 13:22:34 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-12 15:34:30 (GMT)
commit7e62e24b6cfd1683cd4b7ba565537b25d1b604f8 (patch)
tree8f7c9d36473775db4848de2aea45430b75ceaad1
parentcc96daa4443ca39e409040e3e4aff783658b8f6a (diff)
downloadpoky-7e62e24b6cfd1683cd4b7ba565537b25d1b604f8.tar.gz
cmd1.bbclass: Ensure ncurses is built and used for menuconfig tasks
Currently, the task just exits if something goes wrong. This adds the ncurses-native dependency. It also adds a small delay before closing the window so any messages displayed there can be seen. Trying to get the kernel build system to correctly find and link with our copy of ncurses is some kind of nightmare. I ended up having to add it to HOST_LOADLIBES globally for this task which is rather nasty but I couldn't find any other way. [YOCTO #2513] (From OE-Core rev: fe417e8a4d625c6933de72163d2fee52ac47f571) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/cml1.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass
index d429188..bd25311 100644
--- a/meta/classes/cml1.bbclass
+++ b/meta/classes/cml1.bbclass
@@ -9,9 +9,15 @@ addtask configure after do_unpack do_patch before do_compile
9 9
10inherit terminal 10inherit terminal
11 11
12OE_TERMINAL_EXPORTS += "HOST_EXTRACFLAGS HOSTLDFLAGS HOST_LOADLIBES"
13HOST_EXTRACFLAGS = "${BUILD_CFLAGS} ${BUILD_LDFLAGS}"
14HOSTLDFLAGS = "${BUILD_LDFLAGS}"
15HOST_LOADLIBES = "-lncurses"
16
12python do_menuconfig() { 17python do_menuconfig() {
13 oe_terminal("make menuconfig", '${PN} Configuration', d) 18 oe_terminal("${SHELL} -c \"make menuconfig; echo 'Pausing for 5 seconds'; sleep 5\"", '${PN} Configuration', d)
14} 19}
20do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"
15do_menuconfig[nostamp] = "1" 21do_menuconfig[nostamp] = "1"
16addtask menuconfig after do_configure 22addtask menuconfig after do_configure
17 23