diff mbox

[RFC,7/7] kconfig: add stub for nconf checks

Message ID 1309571259-15241-8-git-send-email-lacombar@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Arnaud Lacombe July 2, 2011, 1:47 a.m. UTC
---
 scripts/kconfig/Makefile |    4 +---
 scripts/kconfig/check.sh |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 4e934f1..2eb71ee 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -176,7 +176,7 @@  KC_CHECK := gettext
 
 ifeq ($(MAKECMDGOALS),nconfig)
 	hostprogs-y += nconf
-	KC_CHECK += ncurses
+	KC_CHECK += menu panel ncurses
 endif
 
 ifeq ($(MAKECMDGOALS),menuconfig)
@@ -211,8 +211,6 @@  HOSTCFLAGS_zconf.tab.o	:= -I$(src)
 
 HOSTCFLAGS_gconf.o	= -Wno-missing-prototypes
 
-HOSTLOADLIBES_nconf	= -lmenu -lpanel
-
 need-check := $(addprefix $(obj)/,$(frontends-objs))
 need-check += $(addprefix $(obj)/,$(lxdialog))
 
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index ec551b7..d19eca8 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -47,6 +47,12 @@  check_gtk()
 	echo "HOSTLOADLIBES_gconf	+= $libs"   >> ${obj}/.tmp_check
 }
 
+check_menu()
+{
+
+	echo "HOSTLOADLIBES_nconf	+= -lmenu" >> ${obj}/.tmp_check
+}
+
 check_ncurses()
 {
 	local cflags=""
@@ -96,6 +102,12 @@  check_ncurses()
 	echo "HOSTLOADLIBES_nconf	+= $libs"   >> ${obj}/.tmp_check
 }
 
+check_panel()
+{
+
+	echo "HOSTLOADLIBES_nconf	+= -lpanel" >> ${obj}/.tmp_check
+}
+
 check_qt()
 {
 	local cflags=""
@@ -163,7 +175,9 @@  for arg in $*; do
 	case $arg in
 	gettext)	;;
 	gtk)		;;
+	menu)		;;
 	ncurses)	;;
+	panel)		;;
 	qt)		;;
 	*)
 		echo "  *"