[oe-commits] Richard Purdie : cmd1.bbclass: Ensure ncurses is built and used for menuconfig tasks
git at git.openembedded.org
git at git.openembedded.org
Tue Jun 12 15:36:27 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: fe417e8a4d625c6933de72163d2fee52ac47f571
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fe417e8a4d625c6933de72163d2fee52ac47f571
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Thu May 31 13:22:34 2012 +0000
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]
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/cml1.bbclass | 8 +++++++-
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
inherit terminal
+OE_TERMINAL_EXPORTS += "HOST_EXTRACFLAGS HOSTLDFLAGS HOST_LOADLIBES"
+HOST_EXTRACFLAGS = "${BUILD_CFLAGS} ${BUILD_LDFLAGS}"
+HOSTLDFLAGS = "${BUILD_LDFLAGS}"
+HOST_LOADLIBES = "-lncurses"
+
python do_menuconfig() {
- oe_terminal("make menuconfig", '${PN} Configuration', d)
+ oe_terminal("${SHELL} -c \"make menuconfig; echo 'Pausing for 5 seconds'; sleep 5\"", '${PN} Configuration', d)
}
+do_menuconfig[depends] += "ncurses-native:do_populate_sysroot"
do_menuconfig[nostamp] = "1"
addtask menuconfig after do_configure
More information about the Openembedded-commits
mailing list