diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2014-11-07 17:15:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-31 10:18:39 +0000 |
commit | 04ffa0b961b82682f1f9218cce6bbcf1a9663aae (patch) | |
tree | 5670ba37df744599c0b678f0d6383f1ef314799e /meta/classes | |
parent | fdf882c091f5b797e3c21b8b74b1f28a8eea6870 (diff) | |
download | poky-04ffa0b961b82682f1f9218cce6bbcf1a9663aae.tar.gz |
ncurses, busybox, cml1.bbclass: Fix menuconfig display corruption
Previously there was a change to the ncurses compile to make it more
like the typical way it was compiled on a host system. This fixed a
whole class of host machines, but masked the real underlying problem
with the display corruption issues and menuconfig.
The corner case that led to the discovery that the wrong curses.h file
was getting used was when there was no curses libraries at all on one
of the development hosts. What had happened before was that
/usr/include/curses.h on the host system had to match closely enough
to the curses.h in the sysroot and then linking against the sysroot
version of curses.so was ok (meaning no display corruption). But on
some systems with ncurses.h vs curses.h such as SuSE hosts, there were
still issues.
If we fix the root of the problem and force the mconf and lxdialog to
use the correct headers and libraries from the sysroot there is no
further issues and the menuconfig target works properly. It also
means we can back out the custom compilation flags to the ncurses
recipe because they are no longer needed.
For the kernel part of the menuconfig / nconfig changes it will be
merged separately and this is all based on:
https://lkml.org/lkml/2013/3/3/103
(From OE-Core rev: 889e02659dd396feba24f0b0ee6b4043c3f3735a)
(From OE-Core rev: b8bba551f96f7ff7c2eb772bbdc0b38ed2449683)
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/cml1.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass index b5adc47716..43acfd531b 100644 --- a/meta/classes/cml1.bbclass +++ b/meta/classes/cml1.bbclass | |||
@@ -9,10 +9,11 @@ addtask configure after do_unpack do_patch before do_compile | |||
9 | 9 | ||
10 | inherit terminal | 10 | inherit terminal |
11 | 11 | ||
12 | OE_TERMINAL_EXPORTS += "HOST_EXTRACFLAGS HOSTLDFLAGS HOST_LOADLIBES TERMINFO" | 12 | OE_TERMINAL_EXPORTS += "HOST_EXTRACFLAGS HOSTLDFLAGS TERMINFO CROSS_CURSES_LIB CROSS_CURSES_INC" |
13 | HOST_EXTRACFLAGS = "${BUILD_CFLAGS} ${BUILD_LDFLAGS}" | 13 | HOST_EXTRACFLAGS = "${BUILD_CFLAGS} ${BUILD_LDFLAGS}" |
14 | HOSTLDFLAGS = "${BUILD_LDFLAGS}" | 14 | HOSTLDFLAGS = "${BUILD_LDFLAGS}" |
15 | HOST_LOADLIBES = "-lncurses" | 15 | CROSS_CURSES_LIB = "-lncurses -ltinfo" |
16 | CROSS_CURSES_INC = '-DCURSES_LOC="<curses.h>"' | ||
16 | TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" | 17 | TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo" |
17 | 18 | ||
18 | python do_menuconfig() { | 19 | python do_menuconfig() { |