• Masahiro Yamada's avatar
    kconfig: refactor ncurses package checks for building mconf and nconf · 1c5af5cf
    Masahiro Yamada authored
    The mconf (or its infrastructure, lxdiaglog) depends on the ncurses.
    Move and rename check-lxdialog.sh to mconf-cfg.sh to make it work in
    the same way as for qconf and gconf.
    
    This commit fixes some more weirdnesses.
    
    The nconf also needs ncurses packages.  HOSTLOADLIBES_nconf is set
    to the libraries needed for nconf, but the cflags is not explicitly
    set.  Actually, nconf relies on the check-lxdialog.sh for the proper
    cflags:
    
    HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \
                        -DLOCALE
    
    The code above passes the ncurses flags to all objects, even for conf,
    qconf, gconf.  Let's pass the ncurses flags only to mconf and nconf.
    
    Currently, the presence of ncurses is not checked for nconf.  Let's
    show a prompt like the mconf case.
    
    According to Randy's report, the shell scripts still need to carry
    the fallback code in case the pkg-config fails to find the ncurses
    packages.
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
    1c5af5cf
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...