[OE-core] Busybox menuconfig on host without ncurse development package

Jacob Kroon jacob.kroon at gmail.com
Tue Feb 4 20:58:02 UTC 2014


Hi,

I ran into this problem since I didn't happen to have ncurses development
package installed on my host at the time. "bitbake -c menuconfig busybox"
and "make menuconfig" in a busybox devshell fails:

make -f scripts/Makefile.build obj=scripts/kconfig/lxdialog
  gcc -Wp,-MD,scripts/kconfig/lxdialog/.checklist.o.d  -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer   -DCURSES_LOC="<curses.h>"
-DLOCALE    -c -o scripts/kconfig/lxdialog/checklist.o
scripts/kconfig/lxdialog/checklist.c
In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such
file or directory
 #include CURSES_LOC
                    ^
compilation terminated.

The following change fixes the problem on my system:

--- busybox-1.22.1.orig/scripts/kconfig/lxdialog/Makefile
+++ busybox-1.22.1/scripts/kconfig/lxdialog/Makefile
@@ -5,8 +5,8 @@ check-lxdialog  := $(srctree)/$(src)/che

 # Use reursively expanded variables so we do not call gcc unless
 # we really need to do so. (Do not call gcc as part of make mrproper)
-HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
-HOST_LOADLIBES   = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags
$(HOSTCC))
+HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags)
+HOST_LOADLIBES   += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags
$(HOSTCC))

But I'm no kconfig expert.. anyway, anyone have any comments on this ?

"make menuconfig" for the linux kernel works as expected.

  -- Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140204/8a139c41/attachment-0002.html>


More information about the Openembedded-core mailing list