* [RFC] Kconfig library check merge
@ 2011-06-06 19:16 Arnaud Lacombe
2011-07-01 14:11 ` Michal Marek
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
0 siblings, 2 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-06-06 19:16 UTC (permalink / raw)
To: linux-kbuild, linux-kernel; +Cc: Michal Marek, Arnaud Lacombe, Sam Ravnborg
Hi Michal, Sam,
This is a bit a more deep patch. I was fed up of seeing the various library
check done for kconfig in at least 3 places in the scripts/kconfig/ tree. In
particular, the QT and GTK checks are far too messy to be in a Makefile, while
the gettext is pretty trivial and has its own shell script... Moreover, `nconf'
is missing explicit check for ncurses.
Anyway, here it is. It is a single huge patch _on_purpose_, merely meant to be a
proof of concept. It is based on the previous serie of trivial fixes.
Most of the changes are made to rationalize the architecture. I thought in the
beginning of using autoconf/automake, but that'd be overkill. A single shell
script is far enough to do the job. All the checks only do a bunch of
verification, and export CFLAGS/LDFLAGS for building the frontend. The script
itself output a Makefile ready to be included for the top-level Makefile, with
the necessary check to trigger a re-check if the requested front-end is changed.
Comments welcome!
Regards,
- Arnaud
Cc: Sam Ravnborg <sam@ravnborg.org>
---
scripts/kconfig/Makefile | 160 +++++++------------------
scripts/kconfig/check.sh | 184 ++++++++++++++++++++++++++--
scripts/kconfig/lxdialog/check-lxdialog.sh | 84 -------------
3 files changed, 216 insertions(+), 212 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 84abb2f..f8f853d 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -141,14 +141,6 @@ help:
@echo ' listnewconfig - List new options'
@echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)'
-# lxdialog stuff
-check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
-
-# Use recursively 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) \
- -DLOCALE
-
# ===========================================================================
# Shared Makefile for the various kconfig executables:
# conf: Used for defconfig, oldconfig and related targets
@@ -173,14 +165,19 @@ qconf-cxxobjs := qconf.o
qconf-objs := zconf.tab.o
gconf-objs := gconf.o zconf.tab.o
-hostprogs-y := conf
+frontends-objs := $(conf-objs) $(mconf-objs) $(nconf-objs)
+frontends-objs := $(qconf-cxxobjs) $(gconf-objs)
+
+hostprogs-y :=
ifeq ($(MAKECMDGOALS),nconfig)
hostprogs-y += nconf
+ ncurses-check := 1
endif
ifeq ($(MAKECMDGOALS),menuconfig)
hostprogs-y += mconf
+ ncurses-check := 1
endif
ifeq ($(MAKECMDGOALS),update-po-config)
@@ -188,140 +185,67 @@ ifeq ($(MAKECMDGOALS),update-po-config)
endif
ifeq ($(MAKECMDGOALS),xconfig)
- qconf-target := 1
-endif
-ifeq ($(MAKECMDGOALS),gconfig)
- gconf-target := 1
-endif
-
-
-ifeq ($(qconf-target),1)
hostprogs-y += qconf
+ qt-check := 1
endif
-
-ifeq ($(gconf-target),1)
+ifeq ($(MAKECMDGOALS),gconfig)
hostprogs-y += gconf
+ gtk-check := 1
endif
-clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
+hostprogs-y += conf
+
+clean-files := qconf.moc .tmp_check
clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
clean-files += mconf qconf gconf nconf
clean-files += config.pot linux.pot
-# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
-PHONY += $(obj)/dochecklxdialog
-$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
-$(obj)/dochecklxdialog:
- $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
-
-always := dochecklxdialog
-
-# Add environment specific flags
-HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
-
# generated files seem to need this to find local include files
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)
-HOSTLOADLIBES_qconf = $(KC_QT_LIBS)
-HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS)
+HOSTCFLAGS_gconf.o = -Wno-missing-prototypes
+
+HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
-HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
-HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
- -Wno-missing-prototypes
+need-check += $(addprefix $(obj)/,$(frontends-objs))
+need-check += $(addprefix $(obj)/,$(lxdialog))
-HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
+$(need-check): $(obj)/.tmp_check
-HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
-$(obj)/qconf.o: $(obj)/.tmp_qtcheck
-
-ifeq ($(qconf-target),1)
-$(obj)/.tmp_qtcheck: $(src)/Makefile
--include $(obj)/.tmp_qtcheck
-
-# QT needs some extra effort...
-$(obj)/.tmp_qtcheck:
- @set -e; echo " CHECK qt"; dir=""; pkg=""; \
- if ! pkg-config --exists QtCore 2> /dev/null; then \
- echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \
- pkg-config --exists qt 2> /dev/null && pkg=qt; \
- pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \
- if [ -n "$$pkg" ]; then \
- cflags="\$$(shell pkg-config $$pkg --cflags)"; \
- libs="\$$(shell pkg-config $$pkg --libs)"; \
- moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \
- dir="$$(pkg-config $$pkg --variable=prefix)"; \
- else \
- for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
- if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
- done; \
- if [ -z "$$dir" ]; then \
- echo "*"; \
- echo "* Unable to find any QT installation. Please make sure that"; \
- echo "* the QT4 or QT3 development package is correctly installed and"; \
- echo "* either qmake can be found or install pkg-config or set"; \
- echo "* the QTDIR environment variable to the correct location."; \
- echo "*"; \
- false; \
- fi; \
- libpath=$$dir/lib; lib=qt; osdir=""; \
- $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
- osdir=x$$($(HOSTCXX) -print-multi-os-directory); \
- test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \
- test -f $$libpath/libqt-mt.so && lib=qt-mt; \
- cflags="-I$$dir/include"; \
- libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \
- moc="$$dir/bin/moc"; \
- fi; \
- if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
- echo "*"; \
- echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
- echo "*"; \
- moc="/usr/bin/moc"; \
- fi; \
- else \
- cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \
- libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \
- binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \
- moc="$$binpath/bin/moc"; \
- fi; \
- echo "KC_QT_CFLAGS=$$cflags" > $@; \
- echo "KC_QT_LIBS=$$libs" >> $@; \
- echo "KC_QT_MOC=$$moc" >> $@
+KC_CHECK := gettext
+
+ifeq ($(ncurses-check),1)
+KC_CHECK += ncurses
endif
-$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
-
-ifeq ($(gconf-target),1)
--include $(obj)/.tmp_gtkcheck
-
-# GTK needs some extra effort, too...
-$(obj)/.tmp_gtkcheck:
- @if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \
- if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \
- touch $@; \
- else \
- echo "*"; \
- echo "* GTK+ is present but version >= 2.0.0 is required."; \
- echo "*"; \
- false; \
- fi \
- else \
- echo "*"; \
- echo "* Unable to find the GTK+ installation. Please make sure that"; \
- echo "* the GTK+ 2.0 development package is correctly installed..."; \
- echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
- echo "*"; \
- false; \
- fi
+ifeq ($(qt-check),1)
+KC_CHECK += qt
endif
+ifeq ($(gtk-check),1)
+KC_CHECK += gtk
+endif
+
+-include $(obj)/.tmp_check
+
+KC_CHECKED := $(foreach check,$(KC_CHECK),$(if $(KCONFIG_CHECKED_$(check)),$(check),))
+ifneq ($(KC_CHECK),$(KC_CHECKED))
+$(obj)/.tmp_check: FORCE
+endif
+
+$(obj)/.tmp_check: $(src)/Makefile
+ $(Q)$(srctree)/$(src)/check.sh $(KC_CHECK)
+
$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
$(obj)/qconf.o: $(obj)/qconf.moc
+quiet_cmd_moc = MOC $@
+cmd_moc = $(HOSTMOC) -i $< -o $@
+
$(obj)/%.moc: $(src)/%.h
- $(KC_QT_MOC) -i $< -o $@
+ $(call cmd,moc)
# Extract gconf menu items for I18N support
$(obj)/gconf.glade.h: $(obj)/gconf.glade
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index fa59cbf..841d4bc 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -1,14 +1,178 @@
#!/bin/sh
-# Needed for systems without gettext
-$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
-#include <libintl.h>
-int main()
+#
+
+set -e
+
+check_gettext()
+{
+
+ echo '
+ #include <libintl.h>
+ int main()
+ {
+ gettext("");
+ return 0;
+ }' | \
+ {
+ $* -xc -o /dev/null - > /dev/null 2>&1 || \
+ echo HOST_EXTRACFLAGS += -DKBUILD_NO_NLS >> ${obj}/.tmp_check
+ }
+}
+
+check_gtk()
+{
+ local cflags=""
+ local libs=""
+
+ if pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0; then
+ if ! pkg-config --atleast-version=2.0.0 gtk+-2.0; then
+ echo "*"
+ echo "* GTK+ is present but version >= 2.0.0 is required."
+ echo "*"
+ false
+ fi
+ else
+ echo "*"
+ echo "* Unable to find the GTK+ installation. Please make sure that"
+ echo "* the GTK+ 2.0 development package is correctly installed..."
+ echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."
+ echo "*"
+ false
+ fi
+
+ cflags="$(pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0)"
+ libs="$(pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0)"
+
+ echo "HOSTCFLAGS_gconf.o += $cflags" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_gconf += $libs" >> ${obj}/.tmp_check
+}
+
+check_ncurses()
+{
+ local cflags=""
+ local libs=""
+
+ ncurses_h="ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h"
+ ncurses_h="${ncurses_h} ncurses.h curses.h"
+
+ for header in ${ncurses_h}; do
+ if echo "#include <${header}>" | \
+ $HOSTCC -xc -E -c -o /dev/null - 2> /dev/null; then
+ cflags="-DCURSES_LOC=\"<$header>\""
+ break
+ fi
+ done
+
+ if [ -z "$cflags" ]; then
+ echo " *"
+ echo " * Unable to find the required ncurses header files."
+ echo " * "
+ echo " * Please install ncurses (ncurses-devel) and try again."
+ echo " *"
+ false
+ fi
+
+ for ext in so a dylib ; do
+ for lib in ncursesw ncurses curses; do
+ filename="$($HOSTCC -print-file-name=lib${lib}.${ext})"
+ if [ "$filename" != "lib${lib}.${ext}" ]; then
+ libs=-l$lib
+ break
+ fi
+ done
+ [ -n "$libs" ] && break
+ done
+
+ if [ -z "$libs" ]; then
+ echo " * Unable to find the required ncurses library."
+ echo " *"
+ echo " * Please install ncurses (ncurses-devel) and try again."
+ echo " * "
+ false
+ fi
+
+ echo "HOSTCFLAGS :=$cflags" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_mconf := $libs" >> ${obj}/.tmp_check
+}
+
+check_qt()
{
- gettext("");
- return 0;
+ local cflags=""
+ local libs=""
+ local prefix=""
+
+ if pkg-config --exists QtCore 2> /dev/null; then
+ cflags="$(pkg-config QtCore QtGui Qt3Support --cflags)"
+ libs="$(pkg-config QtCore QtGui Qt3Support --libs)"
+ prefix="$(pkg-config QtCore --variable=prefix)"
+ else
+ echo "* Unable to find the QT4 tool qmake. Trying to use QT3"
+ pkg=""
+ pkg-config --exists qt 2> /dev/null && pkg=qt
+ pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt
+ if [ -n "$pkg" ]; then
+ cflags="$(pkg-config $pkg --cflags)"
+ libs="$(pkg-config $pkg --libs)"
+ prefix="$(pkg-config $pkg --variable=prefix)"
+ else
+ for d in $QTDIR /usr/share/qt* /usr/lib/qt*; do
+ if [ -f $d/include/qconfig.h ]; then
+ prefix=$d
+ break
+ fi
+ done
+ if [ -z "$prefix" ]; then
+ echo " *"
+ echo " * Unable to find any QT installation. Please make sure that"
+ echo " * the QT4 or QT3 development package is correctly installed and"
+ echo " * either qmake can be found or install pkg-config or set"
+ echo " * the QTDIR environment variable to the correct location."
+ echo " *"
+ false
+ fi
+ libpath=$dir/lib
+ lib=qt
+ osdir=""
+ ${HOSTCXX} -print-multi-os-directory > /dev/null 2>&1 && \
+ osdir=x$(${HOSTCXX} -print-multi-os-directory)
+ test -d $libpath/$osdir && libpath=$libpath/$osdir
+ test -f $libpath/libqt-mt.so && lib=qt-mt
+ cflags="-I$prefix/include"
+ libs="-L$libpath -Wl,-rpath,$libpath -l$lib"
+ fi
+ fi
+
+ if [ -x $prefix/bin/moc ]; then
+ moc=$prefix/bin/moc
+ elif [ -a -x /usr/bin/moc ]; then
+ echo " *"
+ echo " * Unable to find $prefix/bin/moc, using /usr/bin/moc instead."
+ echo " *"
+ moc="/usr/bin/moc"
+ fi
+
+ echo "HOSTCXXFLAGS_qconf.o += $cflags" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_qconf += $libs" >> ${obj}/.tmp_check
+ echo "HOSTMOC := $moc" >> ${obj}/.tmp_check
}
-EOF
-if [ ! "$?" -eq "0" ]; then
- echo -DKBUILD_NO_NLS;
-fi
+rm -f ${obj}/.tmp_check
+
+for arg in $*; do
+ case $arg in
+ gettext) ;;
+ gtk) ;;
+ ncurses) ;;
+ qt) ;;
+ *)
+ echo " *"
+ echo " * Do not know how to check for \`$arg'"
+ echo " *"
+ false
+ ;;
+ esac
+ echo " CHECK $arg"
+
+ check_$arg
+ echo "KCONFIG_CHECKED_$arg := 1" >> ${obj}/.tmp_check
+done
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 82cc3a8..e69de29 100644
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -1,84 +0,0 @@
-#!/bin/sh
-# Check ncurses compatibility
-
-# What library to link
-ldflags()
-{
- for ext in so a dylib ; do
- for lib in ncursesw ncurses curses ; do
- $cc -print-file-name=lib${lib}.${ext} | grep -q /
- if [ $? -eq 0 ]; then
- echo "-l${lib}"
- exit
- fi
- done
- done
- exit 1
-}
-
-# Where is ncurses.h?
-ccflags()
-{
- if [ -f /usr/include/ncurses/ncurses.h ]; then
- echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
- elif [ -f /usr/include/ncurses/curses.h ]; then
- echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
- elif [ -f /usr/include/ncursesw/curses.h ]; then
- echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
- elif [ -f /usr/include/ncurses.h ]; then
- echo '-DCURSES_LOC="<ncurses.h>"'
- else
- echo '-DCURSES_LOC="<curses.h>"'
- fi
-}
-
-# Temp file, try to clean up after us
-tmp=.lxdialog.tmp
-trap "rm -f $tmp" 0 1 2 3 15
-
-# Check if we can link to ncurses
-check() {
- $cc -xc - -o $tmp 2>/dev/null <<'EOF'
-#include CURSES_LOC
-main() {}
-EOF
- if [ $? != 0 ]; then
- echo " *** Unable to find the ncurses libraries or the" 1>&2
- echo " *** required header files." 1>&2
- echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
- echo " *** " 1>&2
- echo " *** Install ncurses (ncurses-devel) and try again." 1>&2
- echo " *** " 1>&2
- exit 1
- fi
-}
-
-usage() {
- printf "Usage: $0 [-check compiler options|-ccflags|-ldflags compiler options]\n"
-}
-
-if [ $# -eq 0 ]; then
- usage
- exit 1
-fi
-
-cc=""
-case "$1" in
- "-check")
- shift
- cc="$@"
- check
- ;;
- "-ccflags")
- ccflags
- ;;
- "-ldflags")
- shift
- cc="$@"
- ldflags
- ;;
- "*")
- usage
- exit 1
- ;;
-esac
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [RFC] Kconfig library check merge
2011-06-06 19:16 [RFC] Kconfig library check merge Arnaud Lacombe
@ 2011-07-01 14:11 ` Michal Marek
2011-07-02 0:33 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
1 sibling, 1 reply; 17+ messages in thread
From: Michal Marek @ 2011-07-01 14:11 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kbuild, linux-kernel, Sam Ravnborg
On 6.6.2011 21:16, Arnaud Lacombe wrote:
> Hi Michal, Sam,
>
> This is a bit a more deep patch. I was fed up of seeing the various library
> check done for kconfig in at least 3 places in the scripts/kconfig/ tree. In
> particular, the QT and GTK checks are far too messy to be in a Makefile, while
> the gettext is pretty trivial and has its own shell script... Moreover, `nconf'
> is missing explicit check for ncurses.
>
> Anyway, here it is. It is a single huge patch _on_purpose_, merely meant to be a
> proof of concept. It is based on the previous serie of trivial fixes.
>
> Most of the changes are made to rationalize the architecture. I thought in the
> beginning of using autoconf/automake, but that'd be overkill. A single shell
> script is far enough to do the job. All the checks only do a bunch of
> verification, and export CFLAGS/LDFLAGS for building the frontend. The script
> itself output a Makefile ready to be included for the top-level Makefile, with
> the necessary check to trigger a re-check if the requested front-end is changed.
>
> Comments welcome!
>
> Regards,
> - Arnaud
>
> Cc: Sam Ravnborg<sam@ravnborg.org>
>
> ---
> scripts/kconfig/Makefile | 160 +++++++------------------
> scripts/kconfig/check.sh | 184 ++++++++++++++++++++++++++--
> scripts/kconfig/lxdialog/check-lxdialog.sh | 84 -------------
> 3 files changed, 216 insertions(+), 212 deletions(-)
>
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index 84abb2f..f8f853d 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -141,14 +141,6 @@ help:
> @echo ' listnewconfig - List new options'
> @echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)'
>
> -# lxdialog stuff
> -check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
> -
> -# Use recursively 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) \
> - -DLOCALE
> -
> # ===========================================================================
> # Shared Makefile for the various kconfig executables:
> # conf: Used for defconfig, oldconfig and related targets
> @@ -173,14 +165,19 @@ qconf-cxxobjs := qconf.o
> qconf-objs := zconf.tab.o
> gconf-objs := gconf.o zconf.tab.o
>
> -hostprogs-y := conf
> +frontends-objs := $(conf-objs) $(mconf-objs) $(nconf-objs)
> +frontends-objs := $(qconf-cxxobjs) $(gconf-objs)
^^
Should be +=.
> +
> +hostprogs-y :=
>
> ifeq ($(MAKECMDGOALS),nconfig)
> hostprogs-y += nconf
> + ncurses-check := 1
> endif
>
> ifeq ($(MAKECMDGOALS),menuconfig)
> hostprogs-y += mconf
> + ncurses-check := 1
> endif
>
> ifeq ($(MAKECMDGOALS),update-po-config)
> @@ -188,140 +185,67 @@ ifeq ($(MAKECMDGOALS),update-po-config)
> endif
>
> ifeq ($(MAKECMDGOALS),xconfig)
> - qconf-target := 1
> -endif
> -ifeq ($(MAKECMDGOALS),gconfig)
> - gconf-target := 1
> -endif
> -
> -
> -ifeq ($(qconf-target),1)
> hostprogs-y += qconf
> + qt-check := 1
> endif
> -
> -ifeq ($(gconf-target),1)
> +ifeq ($(MAKECMDGOALS),gconfig)
> hostprogs-y += gconf
> + gtk-check := 1
> endif
...
> +KC_CHECK := gettext
> +
> +ifeq ($(ncurses-check),1)
> +KC_CHECK += ncurses
> endif
You could also build the KC_CHECK right when doing the $(MAKECMDGOALS)
tests and drop the *-check variables. Otherwise it is a very nice
cleanup, thanks a lot!
Michal
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC] Kconfig library check merge
2011-07-01 14:11 ` Michal Marek
@ 2011-07-02 0:33 ` Arnaud Lacombe
0 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 0:33 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, linux-kernel, Sam Ravnborg
Hi,
2011/7/1 Michal Marek <mmarek@suse.cz>:
> On 6.6.2011 21:16, Arnaud Lacombe wrote:
>>
>> Hi Michal, Sam,
>>
>> This is a bit a more deep patch. I was fed up of seeing the various
>> library
>> check done for kconfig in at least 3 places in the scripts/kconfig/ tree.
>> In
>> particular, the QT and GTK checks are far too messy to be in a Makefile,
>> while
>> the gettext is pretty trivial and has its own shell script... Moreover,
>> `nconf'
>> is missing explicit check for ncurses.
>>
>> Anyway, here it is. It is a single huge patch _on_purpose_, merely meant
>> to be a
>> proof of concept. It is based on the previous serie of trivial fixes.
>>
>> Most of the changes are made to rationalize the architecture. I thought in
>> the
>> beginning of using autoconf/automake, but that'd be overkill. A single
>> shell
>> script is far enough to do the job. All the checks only do a bunch of
>> verification, and export CFLAGS/LDFLAGS for building the frontend. The
>> script
>> itself output a Makefile ready to be included for the top-level Makefile,
>> with
>> the necessary check to trigger a re-check if the requested front-end is
>> changed.
>>
>> Comments welcome!
>>
>> Regards,
>> - Arnaud
>>
>> Cc: Sam Ravnborg<sam@ravnborg.org>
>>
>> ---
>> scripts/kconfig/Makefile | 160
>> +++++++------------------
>> scripts/kconfig/check.sh | 184
>> ++++++++++++++++++++++++++--
>> scripts/kconfig/lxdialog/check-lxdialog.sh | 84 -------------
>> 3 files changed, 216 insertions(+), 212 deletions(-)
>>
>> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
>> index 84abb2f..f8f853d 100644
>> --- a/scripts/kconfig/Makefile
>> +++ b/scripts/kconfig/Makefile
>> @@ -141,14 +141,6 @@ help:
>> @echo ' listnewconfig - List new options'
>> @echo ' oldnoconfig - Same as silentoldconfig but set new
>> symbols to n (unset)'
>>
>> -# lxdialog stuff
>> -check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
>> -
>> -# Use recursively 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) \
>> - -DLOCALE
>> -
>> #
>> ===========================================================================
>> # Shared Makefile for the various kconfig executables:
>> # conf: Used for defconfig, oldconfig and related targets
>> @@ -173,14 +165,19 @@ qconf-cxxobjs := qconf.o
>> qconf-objs := zconf.tab.o
>> gconf-objs := gconf.o zconf.tab.o
>>
>> -hostprogs-y := conf
>> +frontends-objs := $(conf-objs) $(mconf-objs) $(nconf-objs)
>> +frontends-objs := $(qconf-cxxobjs) $(gconf-objs)
>
> ^^
> Should be +=.
>
will fix.
>> +
>> +hostprogs-y :=
>>
>> ifeq ($(MAKECMDGOALS),nconfig)
>> hostprogs-y += nconf
>> + ncurses-check := 1
>> endif
>>
>> ifeq ($(MAKECMDGOALS),menuconfig)
>> hostprogs-y += mconf
>> + ncurses-check := 1
>> endif
>>
>> ifeq ($(MAKECMDGOALS),update-po-config)
>> @@ -188,140 +185,67 @@ ifeq ($(MAKECMDGOALS),update-po-config)
>> endif
>>
>> ifeq ($(MAKECMDGOALS),xconfig)
>> - qconf-target := 1
>> -endif
>> -ifeq ($(MAKECMDGOALS),gconfig)
>> - gconf-target := 1
>> -endif
>> -
>> -
>> -ifeq ($(qconf-target),1)
>> hostprogs-y += qconf
>> + qt-check := 1
>> endif
>> -
>> -ifeq ($(gconf-target),1)
>> +ifeq ($(MAKECMDGOALS),gconfig)
>> hostprogs-y += gconf
>> + gtk-check := 1
>> endif
>
> ...
>>
>> +KC_CHECK := gettext
>> +
>> +ifeq ($(ncurses-check),1)
>> +KC_CHECK += ncurses
>> endif
>
> You could also build the KC_CHECK right when doing the $(MAKECMDGOALS) tests
> and drop the *-check variables. Otherwise it is a very nice cleanup, thanks
> a lot!
>
yes, good point.
Btw, I intend to split the patch into more logical part. Will update soon.
- Arnaud
^ permalink raw reply [flat|nested] 17+ messages in thread
* [RFC 0/7] Kconfig library check merge
2011-06-06 19:16 [RFC] Kconfig library check merge Arnaud Lacombe
2011-07-01 14:11 ` Michal Marek
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 1/7] kconfig/Makefile: add pretty printer for moc(1) Arnaud Lacombe
` (7 more replies)
1 sibling, 8 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
Hi Michal,
You'll find hereafter a splitted-down version of my previous preliminary
patch. I will eventually need to complete the second commit message, it is
missing the purpose of the change, which AFAIR was a failure of something.
Comments welcome!
- Arnaud
Arnaud Lacombe (7):
kconfig/Makefile: add pretty printer for moc(1)
kconfig/Makefile: ensure `conf' appears last in `hostprogs-y'
kconfig/check.sh: prepare for generic check
kconfig: move QT checks to `scripts/kconfig/check.sh'
kconfig: move GTK checks to `scripts/kconfig/check.sh'
kconfig: move ncurses checks to `scripts/kconfig/check.sh'
kconfig: add stub for nconf checks
scripts/kconfig/Makefile | 155 +++++-----------------
scripts/kconfig/check.sh | 199 ++++++++++++++++++++++++++--
scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ------------
3 files changed, 223 insertions(+), 215 deletions(-)
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply [flat|nested] 17+ messages in thread
* [RFC 1/7] kconfig/Makefile: add pretty printer for moc(1)
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 2/7] kconfig/Makefile: ensure `conf' appears last in `hostprogs-y' Arnaud Lacombe
` (6 subsequent siblings)
7 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
---
scripts/kconfig/Makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 84abb2f..ce46407 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -320,8 +320,11 @@ $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
$(obj)/qconf.o: $(obj)/qconf.moc
+quiet_cmd_moc = MOC $@
+cmd_moc = $(KC_QT_MOC) -i $< -o $@
+
$(obj)/%.moc: $(src)/%.h
- $(KC_QT_MOC) -i $< -o $@
+ $(call cmd,moc)
# Extract gconf menu items for I18N support
$(obj)/gconf.glade.h: $(obj)/gconf.glade
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [RFC 2/7] kconfig/Makefile: ensure `conf' appears last in `hostprogs-y'
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
2011-07-02 1:47 ` [RFC 1/7] kconfig/Makefile: add pretty printer for moc(1) Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 3/7] kconfig/check.sh: prepare for generic check Arnaud Lacombe
` (5 subsequent siblings)
7 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
---
scripts/kconfig/Makefile | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index ce46407..8abde17 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -173,7 +173,7 @@ qconf-cxxobjs := qconf.o
qconf-objs := zconf.tab.o
gconf-objs := gconf.o zconf.tab.o
-hostprogs-y := conf
+hostprogs-y :=
ifeq ($(MAKECMDGOALS),nconfig)
hostprogs-y += nconf
@@ -203,6 +203,8 @@ ifeq ($(gconf-target),1)
hostprogs-y += gconf
endif
+hostprogs-y += conf
+
clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
clean-files += mconf qconf gconf nconf
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [RFC 3/7] kconfig/check.sh: prepare for generic check
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
2011-07-02 1:47 ` [RFC 1/7] kconfig/Makefile: add pretty printer for moc(1) Arnaud Lacombe
2011-07-02 1:47 ` [RFC 2/7] kconfig/Makefile: ensure `conf' appears last in `hostprogs-y' Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-05 22:37 ` Valdis.Kletnieks
2011-07-02 1:47 ` [RFC 4/7] kconfig: move QT checks to `scripts/kconfig/check.sh' Arnaud Lacombe
` (4 subsequent siblings)
7 siblings, 1 reply; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
`scripts/kconfig/check.sh' currently checks for libintl availability, make this
explicit. Result gets stored in a ${obj}/.tmp_check Makefile sourced by
the main Makefile dynamically.
---
scripts/kconfig/Makefile | 22 ++++++++++++++++++----
scripts/kconfig/check.sh | 44 ++++++++++++++++++++++++++++++++++----------
2 files changed, 52 insertions(+), 14 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 8abde17..a9344d2 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -173,8 +173,12 @@ qconf-cxxobjs := qconf.o
qconf-objs := zconf.tab.o
gconf-objs := gconf.o zconf.tab.o
+frontends-objs := $(conf-objs) $(mconf-objs) $(nconf-objs)
+
hostprogs-y :=
+KC_CHECK := gettext
+
ifeq ($(MAKECMDGOALS),nconfig)
hostprogs-y += nconf
endif
@@ -205,7 +209,7 @@ endif
hostprogs-y += conf
-clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
+clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck .tmp_check
clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
clean-files += mconf qconf gconf nconf
clean-files += config.pot linux.pot
@@ -218,9 +222,6 @@ $(obj)/dochecklxdialog:
always := dochecklxdialog
-# Add environment specific flags
-HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
-
# generated files seem to need this to find local include files
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)
@@ -316,8 +317,21 @@ $(obj)/.tmp_gtkcheck:
echo "*"; \
false; \
fi
+
+need-check := $(addprefix $(obj)/,$(frontends-objs))
+
+$(need-check): $(obj)/.tmp_check
+
+-include $(obj)/.tmp_check
+
+KC_CHECKED := $(foreach check,$(KC_CHECK),$(if $(KCONFIG_CHECKED_$(check)),$(check),))
+ifneq ($(KC_CHECK),$(KC_CHECKED))
+$(obj)/.tmp_check: FORCE
endif
+$(obj)/.tmp_check: $(src)/Makefile
+ $(Q)$(srctree)/$(src)/check.sh $(KC_CHECK)
+
$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
$(obj)/qconf.o: $(obj)/qconf.moc
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index fa59cbf..fcb999e 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -1,14 +1,38 @@
#!/bin/sh
-# Needed for systems without gettext
-$* -xc -o /dev/null - > /dev/null 2>&1 << EOF
-#include <libintl.h>
-int main()
+#
+
+set -e
+
+check_gettext()
{
- gettext("");
- return 0;
+
+ echo '
+ #include <libintl.h>
+ int main()
+ {
+ gettext("");
+ return 0;
+ }' | \
+ {
+ $* -xc -o /dev/null - > /dev/null 2>&1 || \
+ echo HOST_EXTRACFLAGS += -DKBUILD_NO_NLS >> ${obj}/.tmp_check
+ }
}
-EOF
-if [ ! "$?" -eq "0" ]; then
- echo -DKBUILD_NO_NLS;
-fi
+rm -f ${obj}/.tmp_check
+
+for arg in $*; do
+ case $arg in
+ gettext) ;;
+ *)
+ echo " *"
+ echo " * Do not know how to check for \`$arg'"
+ echo " *"
+ false
+ ;;
+ esac
+ echo " CHECK $arg"
+
+ check_$arg
+ echo "KCONFIG_CHECKED_$arg := 1" >> ${obj}/.tmp_check
+done
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [RFC 4/7] kconfig: move QT checks to `scripts/kconfig/check.sh'
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
` (2 preceding siblings ...)
2011-07-02 1:47 ` [RFC 3/7] kconfig/check.sh: prepare for generic check Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 5/7] kconfig: move GTK " Arnaud Lacombe
` (3 subsequent siblings)
7 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
+50 lines of shell script in the main Makefile is just insane. In the same
time attempts to make the script more readable.
---
scripts/kconfig/Makefile | 73 ++++-----------------------------------------
scripts/kconfig/check.sh | 62 +++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+), 66 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index a9344d2..a3176dc 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -174,6 +174,9 @@ qconf-objs := zconf.tab.o
gconf-objs := gconf.o zconf.tab.o
frontends-objs := $(conf-objs) $(mconf-objs) $(nconf-objs)
+frontends-objs += $(qconf-cxxobjs)
+
+hostprogs-y :=
hostprogs-y :=
@@ -192,24 +195,21 @@ ifeq ($(MAKECMDGOALS),update-po-config)
endif
ifeq ($(MAKECMDGOALS),xconfig)
- qconf-target := 1
+ hostprogs-y += qconf
+ KC_CHECK += qt
endif
ifeq ($(MAKECMDGOALS),gconfig)
gconf-target := 1
endif
-ifeq ($(qconf-target),1)
- hostprogs-y += qconf
-endif
-
ifeq ($(gconf-target),1)
hostprogs-y += gconf
endif
hostprogs-y += conf
-clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck .tmp_check
+clean-files := qconf.moc .tmp_gtkcheck .tmp_check
clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
clean-files += mconf qconf gconf nconf
clean-files += config.pot linux.pot
@@ -226,9 +226,6 @@ always := dochecklxdialog
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)
-HOSTLOADLIBES_qconf = $(KC_QT_LIBS)
-HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS)
-
HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
-Wno-missing-prototypes
@@ -236,62 +233,6 @@ HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
-$(obj)/qconf.o: $(obj)/.tmp_qtcheck
-
-ifeq ($(qconf-target),1)
-$(obj)/.tmp_qtcheck: $(src)/Makefile
--include $(obj)/.tmp_qtcheck
-
-# QT needs some extra effort...
-$(obj)/.tmp_qtcheck:
- @set -e; echo " CHECK qt"; dir=""; pkg=""; \
- if ! pkg-config --exists QtCore 2> /dev/null; then \
- echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \
- pkg-config --exists qt 2> /dev/null && pkg=qt; \
- pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \
- if [ -n "$$pkg" ]; then \
- cflags="\$$(shell pkg-config $$pkg --cflags)"; \
- libs="\$$(shell pkg-config $$pkg --libs)"; \
- moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \
- dir="$$(pkg-config $$pkg --variable=prefix)"; \
- else \
- for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \
- if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \
- done; \
- if [ -z "$$dir" ]; then \
- echo "*"; \
- echo "* Unable to find any QT installation. Please make sure that"; \
- echo "* the QT4 or QT3 development package is correctly installed and"; \
- echo "* either qmake can be found or install pkg-config or set"; \
- echo "* the QTDIR environment variable to the correct location."; \
- echo "*"; \
- false; \
- fi; \
- libpath=$$dir/lib; lib=qt; osdir=""; \
- $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \
- osdir=x$$($(HOSTCXX) -print-multi-os-directory); \
- test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \
- test -f $$libpath/libqt-mt.so && lib=qt-mt; \
- cflags="-I$$dir/include"; \
- libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \
- moc="$$dir/bin/moc"; \
- fi; \
- if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \
- echo "*"; \
- echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \
- echo "*"; \
- moc="/usr/bin/moc"; \
- fi; \
- else \
- cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \
- libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \
- binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \
- moc="$$binpath/bin/moc"; \
- fi; \
- echo "KC_QT_CFLAGS=$$cflags" > $@; \
- echo "KC_QT_LIBS=$$libs" >> $@; \
- echo "KC_QT_MOC=$$moc" >> $@
-endif
$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
@@ -337,7 +278,7 @@ $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
$(obj)/qconf.o: $(obj)/qconf.moc
quiet_cmd_moc = MOC $@
-cmd_moc = $(KC_QT_MOC) -i $< -o $@
+cmd_moc = $(HOSTMOC) -i $< -o $@
$(obj)/%.moc: $(src)/%.h
$(call cmd,moc)
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index fcb999e..47abde4 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -19,11 +19,73 @@ check_gettext()
}
}
+check_qt()
+{
+ local cflags=""
+ local libs=""
+ local prefix=""
+
+ if pkg-config --exists QtCore 2> /dev/null; then
+ cflags="$(pkg-config QtCore QtGui Qt3Support --cflags)"
+ libs="$(pkg-config QtCore QtGui Qt3Support --libs)"
+ prefix="$(pkg-config QtCore --variable=prefix)"
+ else
+ echo "* Unable to find the QT4 tool qmake. Trying to use QT3"
+ pkg=""
+ pkg-config --exists qt 2> /dev/null && pkg=qt
+ pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt
+ if [ -n "$pkg" ]; then
+ cflags="$(pkg-config $pkg --cflags)"
+ libs="$(pkg-config $pkg --libs)"
+ prefix="$(pkg-config $pkg --variable=prefix)"
+ else
+ for d in $QTDIR /usr/share/qt* /usr/lib/qt*; do
+ if [ -f $d/include/qconfig.h ]; then
+ prefix=$d
+ break
+ fi
+ done
+ if [ -z "$prefix" ]; then
+ echo " *"
+ echo " * Unable to find any QT installation. Please make sure that"
+ echo " * the QT4 or QT3 development package is correctly installed and"
+ echo " * either qmake can be found or install pkg-config or set"
+ echo " * the QTDIR environment variable to the correct location."
+ echo " *"
+ false
+ fi
+ libpath=$dir/lib
+ lib=qt
+ osdir=""
+ ${HOSTCXX} -print-multi-os-directory > /dev/null 2>&1 && \
+ osdir=x$(${HOSTCXX} -print-multi-os-directory)
+ test -d $libpath/$osdir && libpath=$libpath/$osdir
+ test -f $libpath/libqt-mt.so && lib=qt-mt
+ cflags="-I$prefix/include"
+ libs="-L$libpath -Wl,-rpath,$libpath -l$lib"
+ fi
+ fi
+
+ if [ -x $prefix/bin/moc ]; then
+ moc=$prefix/bin/moc
+ elif [ -a -x /usr/bin/moc ]; then
+ echo " *"
+ echo " * Unable to find $prefix/bin/moc, using /usr/bin/moc instead."
+ echo " *"
+ moc="/usr/bin/moc"
+ fi
+
+ echo "HOSTCXXFLAGS_qconf.o += $cflags" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_qconf += $libs" >> ${obj}/.tmp_check
+ echo "HOSTMOC := $moc" >> ${obj}/.tmp_check
+}
+
rm -f ${obj}/.tmp_check
for arg in $*; do
case $arg in
gettext) ;;
+ qt) ;;
*)
echo " *"
echo " * Do not know how to check for \`$arg'"
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [RFC 5/7] kconfig: move GTK checks to `scripts/kconfig/check.sh'
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
` (3 preceding siblings ...)
2011-07-02 1:47 ` [RFC 4/7] kconfig: move QT checks to `scripts/kconfig/check.sh' Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 6/7] kconfig: move ncurses " Arnaud Lacombe
` (2 subsequent siblings)
7 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
---
scripts/kconfig/Makefile | 39 +++++----------------------------------
scripts/kconfig/check.sh | 29 +++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index a3176dc..5021817 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -174,7 +174,7 @@ qconf-objs := zconf.tab.o
gconf-objs := gconf.o zconf.tab.o
frontends-objs := $(conf-objs) $(mconf-objs) $(nconf-objs)
-frontends-objs += $(qconf-cxxobjs)
+frontends-objs += $(qconf-cxxobjs) $(gconf-objs)
hostprogs-y :=
@@ -198,18 +198,15 @@ ifeq ($(MAKECMDGOALS),xconfig)
hostprogs-y += qconf
KC_CHECK += qt
endif
-ifeq ($(MAKECMDGOALS),gconfig)
- gconf-target := 1
-endif
-
-ifeq ($(gconf-target),1)
+ifeq ($(MAKECMDGOALS),gconfig)
hostprogs-y += gconf
+ KC_CHECK += gtk
endif
hostprogs-y += conf
-clean-files := qconf.moc .tmp_gtkcheck .tmp_check
+clean-files := qconf.moc .tmp_check
clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
clean-files += mconf qconf gconf nconf
clean-files += config.pot linux.pot
@@ -226,38 +223,12 @@ always := dochecklxdialog
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)
-HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
-HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
- -Wno-missing-prototypes
+HOSTCFLAGS_gconf.o = -Wno-missing-prototypes
HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
-$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
-
-ifeq ($(gconf-target),1)
--include $(obj)/.tmp_gtkcheck
-
-# GTK needs some extra effort, too...
-$(obj)/.tmp_gtkcheck:
- @if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \
- if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \
- touch $@; \
- else \
- echo "*"; \
- echo "* GTK+ is present but version >= 2.0.0 is required."; \
- echo "*"; \
- false; \
- fi \
- else \
- echo "*"; \
- echo "* Unable to find the GTK+ installation. Please make sure that"; \
- echo "* the GTK+ 2.0 development package is correctly installed..."; \
- echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \
- echo "*"; \
- false; \
- fi
need-check := $(addprefix $(obj)/,$(frontends-objs))
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index 47abde4..4456d63 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -19,6 +19,34 @@ check_gettext()
}
}
+check_gtk()
+{
+ local cflags=""
+ local libs=""
+
+ if pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0; then
+ if ! pkg-config --atleast-version=2.0.0 gtk+-2.0; then
+ echo "*"
+ echo "* GTK+ is present but version >= 2.0.0 is required."
+ echo "*"
+ false
+ fi
+ else
+ echo "*"
+ echo "* Unable to find the GTK+ installation. Please make sure that"
+ echo "* the GTK+ 2.0 development package is correctly installed..."
+ echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."
+ echo "*"
+ false
+ fi
+
+ cflags="$(pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0)"
+ libs="$(pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0)"
+
+ echo "HOSTCFLAGS_gconf.o += $cflags" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_gconf += $libs" >> ${obj}/.tmp_check
+}
+
check_qt()
{
local cflags=""
@@ -85,6 +113,7 @@ rm -f ${obj}/.tmp_check
for arg in $*; do
case $arg in
gettext) ;;
+ gtk) ;;
qt) ;;
*)
echo " *"
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [RFC 6/7] kconfig: move ncurses checks to `scripts/kconfig/check.sh'
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
` (4 preceding siblings ...)
2011-07-02 1:47 ` [RFC 5/7] kconfig: move GTK " Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 7/7] kconfig: add stub for nconf checks Arnaud Lacombe
2011-07-18 19:03 ` [RFC 0/7] Kconfig library check merge Arnaud Lacombe
7 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
---
scripts/kconfig/Makefile | 24 +-------
scripts/kconfig/check.sh | 50 ++++++++++++++++
scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ----------------------------
3 files changed, 54 insertions(+), 104 deletions(-)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 5021817..4e934f1 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -141,14 +141,6 @@ help:
@echo ' listnewconfig - List new options'
@echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)'
-# lxdialog stuff
-check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
-
-# Use recursively 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) \
- -DLOCALE
-
# ===========================================================================
# Shared Makefile for the various kconfig executables:
# conf: Used for defconfig, oldconfig and related targets
@@ -184,10 +176,12 @@ KC_CHECK := gettext
ifeq ($(MAKECMDGOALS),nconfig)
hostprogs-y += nconf
+ KC_CHECK += ncurses
endif
ifeq ($(MAKECMDGOALS),menuconfig)
hostprogs-y += mconf
+ KC_CHECK += ncurses
endif
ifeq ($(MAKECMDGOALS),update-po-config)
@@ -211,26 +205,16 @@ clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
clean-files += mconf qconf gconf nconf
clean-files += config.pot linux.pot
-# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
-PHONY += $(obj)/dochecklxdialog
-$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
-$(obj)/dochecklxdialog:
- $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTLOADLIBES_mconf)
-
-always := dochecklxdialog
-
# generated files seem to need this to find local include files
HOSTCFLAGS_lex.zconf.o := -I$(src)
HOSTCFLAGS_zconf.tab.o := -I$(src)
HOSTCFLAGS_gconf.o = -Wno-missing-prototypes
-HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
-
-HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses
-
+HOSTLOADLIBES_nconf = -lmenu -lpanel
need-check := $(addprefix $(obj)/,$(frontends-objs))
+need-check += $(addprefix $(obj)/,$(lxdialog))
$(need-check): $(obj)/.tmp_check
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index 4456d63..ec551b7 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -47,6 +47,55 @@ check_gtk()
echo "HOSTLOADLIBES_gconf += $libs" >> ${obj}/.tmp_check
}
+check_ncurses()
+{
+ local cflags=""
+ local libs=""
+
+ ncurses_h="ncursesw/curses.h ncurses/ncurses.h ncurses/curses.h"
+ ncurses_h="${ncurses_h} ncurses.h curses.h"
+
+ for header in ${ncurses_h}; do
+ if echo "#include <${header}>" | \
+ $HOSTCC -xc -E -c -o /dev/null - 2> /dev/null; then
+ cflags="-DCURSES_LOC=\"<$header>\""
+ break
+ fi
+ done
+
+ if [ -z "$cflags" ]; then
+ echo " *"
+ echo " * Unable to find the required ncurses header files."
+ echo " * "
+ echo " * Please install ncurses (ncurses-devel) and try again."
+ echo " *"
+ false
+ fi
+
+ for ext in so a dylib ; do
+ for lib in ncursesw ncurses curses; do
+ filename="$($HOSTCC -print-file-name=lib${lib}.${ext})"
+ if [ "$filename" != "lib${lib}.${ext}" ]; then
+ libs=-l$lib
+ break
+ fi
+ done
+ [ -n "$libs" ] && break
+ done
+
+ if [ -z "$libs" ]; then
+ echo " * Unable to find the required ncurses library."
+ echo " *"
+ echo " * Please install ncurses (ncurses-devel) and try again."
+ echo " * "
+ false
+ fi
+
+ echo "HOSTCFLAGS +=$cflags" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_mconf += $libs" >> ${obj}/.tmp_check
+ echo "HOSTLOADLIBES_nconf += $libs" >> ${obj}/.tmp_check
+}
+
check_qt()
{
local cflags=""
@@ -114,6 +163,7 @@ for arg in $*; do
case $arg in
gettext) ;;
gtk) ;;
+ ncurses) ;;
qt) ;;
*)
echo " *"
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 82cc3a8..e69de29 100644
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -1,84 +0,0 @@
-#!/bin/sh
-# Check ncurses compatibility
-
-# What library to link
-ldflags()
-{
- for ext in so a dylib ; do
- for lib in ncursesw ncurses curses ; do
- $cc -print-file-name=lib${lib}.${ext} | grep -q /
- if [ $? -eq 0 ]; then
- echo "-l${lib}"
- exit
- fi
- done
- done
- exit 1
-}
-
-# Where is ncurses.h?
-ccflags()
-{
- if [ -f /usr/include/ncurses/ncurses.h ]; then
- echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
- elif [ -f /usr/include/ncurses/curses.h ]; then
- echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
- elif [ -f /usr/include/ncursesw/curses.h ]; then
- echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
- elif [ -f /usr/include/ncurses.h ]; then
- echo '-DCURSES_LOC="<ncurses.h>"'
- else
- echo '-DCURSES_LOC="<curses.h>"'
- fi
-}
-
-# Temp file, try to clean up after us
-tmp=.lxdialog.tmp
-trap "rm -f $tmp" 0 1 2 3 15
-
-# Check if we can link to ncurses
-check() {
- $cc -xc - -o $tmp 2>/dev/null <<'EOF'
-#include CURSES_LOC
-main() {}
-EOF
- if [ $? != 0 ]; then
- echo " *** Unable to find the ncurses libraries or the" 1>&2
- echo " *** required header files." 1>&2
- echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2
- echo " *** " 1>&2
- echo " *** Install ncurses (ncurses-devel) and try again." 1>&2
- echo " *** " 1>&2
- exit 1
- fi
-}
-
-usage() {
- printf "Usage: $0 [-check compiler options|-ccflags|-ldflags compiler options]\n"
-}
-
-if [ $# -eq 0 ]; then
- usage
- exit 1
-fi
-
-cc=""
-case "$1" in
- "-check")
- shift
- cc="$@"
- check
- ;;
- "-ccflags")
- ccflags
- ;;
- "-ldflags")
- shift
- cc="$@"
- ldflags
- ;;
- "*")
- usage
- exit 1
- ;;
-esac
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [RFC 7/7] kconfig: add stub for nconf checks
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
` (5 preceding siblings ...)
2011-07-02 1:47 ` [RFC 6/7] kconfig: move ncurses " Arnaud Lacombe
@ 2011-07-02 1:47 ` Arnaud Lacombe
2011-07-18 19:03 ` [RFC 0/7] Kconfig library check merge Arnaud Lacombe
7 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-02 1:47 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
---
scripts/kconfig/Makefile | 4 +---
scripts/kconfig/check.sh | 14 ++++++++++++++
2 files changed, 15 insertions(+), 3 deletions(-)
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 " *"
--
1.7.3.4.574.g608b.dirty
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [RFC 3/7] kconfig/check.sh: prepare for generic check
2011-07-02 1:47 ` [RFC 3/7] kconfig/check.sh: prepare for generic check Arnaud Lacombe
@ 2011-07-05 22:37 ` Valdis.Kletnieks
2011-07-05 22:48 ` Arnaud Lacombe
0 siblings, 1 reply; 17+ messages in thread
From: Valdis.Kletnieks @ 2011-07-05 22:37 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kbuild, linux-kernel, Michal Marek
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
On Fri, 01 Jul 2011 21:47:35 EDT, Arnaud Lacombe said:
> diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
Can this be check_libs.sh or similar, to better indicate the function?
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC 3/7] kconfig/check.sh: prepare for generic check
2011-07-05 22:37 ` Valdis.Kletnieks
@ 2011-07-05 22:48 ` Arnaud Lacombe
0 siblings, 0 replies; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-05 22:48 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: linux-kbuild, linux-kernel, Michal Marek
Hi,
On Tue, Jul 5, 2011 at 6:37 PM, <Valdis.Kletnieks@vt.edu> wrote:
> On Fri, 01 Jul 2011 21:47:35 EDT, Arnaud Lacombe said:
>
>> diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
>
> Can this be check_libs.sh or similar, to better indicate the function?
>
Definitively. I was tempted at some point to call it configure.sh and
to rename the .tmp_check to .config.mk as it generates host-specific
config for the main Makefile. I finally went the path of least
modification.
- Arnaud
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC 0/7] Kconfig library check merge
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
` (6 preceding siblings ...)
2011-07-02 1:47 ` [RFC 7/7] kconfig: add stub for nconf checks Arnaud Lacombe
@ 2011-07-18 19:03 ` Arnaud Lacombe
2011-07-19 13:06 ` Michal Marek
7 siblings, 1 reply; 17+ messages in thread
From: Arnaud Lacombe @ 2011-07-18 19:03 UTC (permalink / raw)
To: linux-kbuild, linux-kernel, Michal Marek; +Cc: Arnaud Lacombe
Hi,
On Fri, Jul 1, 2011 at 9:47 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> Hi Michal,
>
> You'll find hereafter a splitted-down version of my previous preliminary
> patch. I will eventually need to complete the second commit message, it is
> missing the purpose of the change, which AFAIR was a failure of something.
>
> Comments welcome!
>
> - Arnaud
>
> Arnaud Lacombe (7):
> kconfig/Makefile: add pretty printer for moc(1)
> kconfig/Makefile: ensure `conf' appears last in `hostprogs-y'
> kconfig/check.sh: prepare for generic check
> kconfig: move QT checks to `scripts/kconfig/check.sh'
> kconfig: move GTK checks to `scripts/kconfig/check.sh'
> kconfig: move ncurses checks to `scripts/kconfig/check.sh'
> kconfig: add stub for nconf checks
>
> scripts/kconfig/Makefile | 155 +++++-----------------
> scripts/kconfig/check.sh | 199 ++++++++++++++++++++++++++--
> scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ------------
> 3 files changed, 223 insertions(+), 215 deletions(-)
>
ping ?
- Arnaud
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC 0/7] Kconfig library check merge
2011-07-18 19:03 ` [RFC 0/7] Kconfig library check merge Arnaud Lacombe
@ 2011-07-19 13:06 ` Michal Marek
2011-08-16 5:29 ` Arnaud Lacombe
0 siblings, 1 reply; 17+ messages in thread
From: Michal Marek @ 2011-07-19 13:06 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kbuild, linux-kernel
On 18.7.2011 21:03, Arnaud Lacombe wrote:
> Hi,
>
> On Fri, Jul 1, 2011 at 9:47 PM, Arnaud Lacombe<lacombar@gmail.com> wrote:
>> Hi Michal,
>>
>> You'll find hereafter a splitted-down version of my previous preliminary
>> patch. I will eventually need to complete the second commit message, it is
>> missing the purpose of the change, which AFAIR was a failure of something.
>>
>> Comments welcome!
>>
>> - Arnaud
>>
>> Arnaud Lacombe (7):
>> kconfig/Makefile: add pretty printer for moc(1)
>> kconfig/Makefile: ensure `conf' appears last in `hostprogs-y'
>> kconfig/check.sh: prepare for generic check
>> kconfig: move QT checks to `scripts/kconfig/check.sh'
>> kconfig: move GTK checks to `scripts/kconfig/check.sh'
>> kconfig: move ncurses checks to `scripts/kconfig/check.sh'
>> kconfig: add stub for nconf checks
>>
>> scripts/kconfig/Makefile | 155 +++++-----------------
>> scripts/kconfig/check.sh | 199 ++++++++++++++++++++++++++--
>> scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ------------
>> 3 files changed, 223 insertions(+), 215 deletions(-)
>>
> ping ?
Pong. The series looks fine to me. I have no strong opinion about the
name of the check script, pick whatever you like and send a series with
your signoff.
Michal
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC 0/7] Kconfig library check merge
2011-07-19 13:06 ` Michal Marek
@ 2011-08-16 5:29 ` Arnaud Lacombe
2011-08-19 14:02 ` Michal Marek
0 siblings, 1 reply; 17+ messages in thread
From: Arnaud Lacombe @ 2011-08-16 5:29 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, linux-kernel
Hi Michal,
On Tue, Jul 19, 2011 at 9:06 AM, Michal Marek <mmarek@suse.cz> wrote:
> On 18.7.2011 21:03, Arnaud Lacombe wrote:
>>
>> Hi,
>>
>> On Fri, Jul 1, 2011 at 9:47 PM, Arnaud Lacombe<lacombar@gmail.com> wrote:
>>>
>>> Hi Michal,
>>>
>>> You'll find hereafter a splitted-down version of my previous preliminary
>>> patch. I will eventually need to complete the second commit message, it
>>> is
>>> missing the purpose of the change, which AFAIR was a failure of
>>> something.
>>>
>>> Comments welcome!
>>>
>>> - Arnaud
>>>
>>> Arnaud Lacombe (7):
>>> kconfig/Makefile: add pretty printer for moc(1)
>>> kconfig/Makefile: ensure `conf' appears last in `hostprogs-y'
>>> kconfig/check.sh: prepare for generic check
>>> kconfig: move QT checks to `scripts/kconfig/check.sh'
>>> kconfig: move GTK checks to `scripts/kconfig/check.sh'
>>> kconfig: move ncurses checks to `scripts/kconfig/check.sh'
>>> kconfig: add stub for nconf checks
>>>
>>> scripts/kconfig/Makefile | 155 +++++-----------------
>>> scripts/kconfig/check.sh | 199
>>> ++++++++++++++++++++++++++--
>>> scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ------------
>>> 3 files changed, 223 insertions(+), 215 deletions(-)
>>>
>> ping ?
>
> Pong. The series looks fine to me. I have no strong opinion about the name
> of the check script, pick whatever you like and send a series with your
> signoff.
>
The following changes since commit 322a8b034003c0d46d39af85bf24fee27b902f48:
Linux 3.1-rc1 (2011-08-07 18:23:30 -0700)
are available in the git repository at:
git@github.com:lacombar/linux-2.6.git master/kconfig-generic-checks
Arnaud Lacombe (6):
kconfig/Makefile: add pretty printer for moc(1)
kconfig/check.sh: prepare for generic check
kconfig: move QT checks to `scripts/kconfig/check.sh'
kconfig: move GTK checks to `scripts/kconfig/check.sh'
kconfig: move ncurses checks to `scripts/kconfig/check.sh'
kconfig: add stub for nconf checks
scripts/kconfig/Makefile | 149 ++++-----------------
scripts/kconfig/check.sh | 199 ++++++++++++++++++++++++++--
scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ------------
3 files changed, 218 insertions(+), 214 deletions(-)
I dropped the `conf' ordering patch, I could not reproduce the issue I
once had. Beside that, the main diff is a rebase on top of -rc1.
Thanks,
- Arnaud
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [RFC 0/7] Kconfig library check merge
2011-08-16 5:29 ` Arnaud Lacombe
@ 2011-08-19 14:02 ` Michal Marek
0 siblings, 0 replies; 17+ messages in thread
From: Michal Marek @ 2011-08-19 14:02 UTC (permalink / raw)
To: Arnaud Lacombe; +Cc: linux-kbuild, linux-kernel
On 16.8.2011 07:29, Arnaud Lacombe wrote:
> Hi Michal,
>
> On Tue, Jul 19, 2011 at 9:06 AM, Michal Marek <mmarek@suse.cz> wrote:
>> On 18.7.2011 21:03, Arnaud Lacombe wrote:
>>>
>>> Hi,
>>>
>>> On Fri, Jul 1, 2011 at 9:47 PM, Arnaud Lacombe<lacombar@gmail.com> wrote:
>>>>
>>>> Hi Michal,
>>>>
>>>> You'll find hereafter a splitted-down version of my previous preliminary
>>>> patch. I will eventually need to complete the second commit message, it
>>>> is
>>>> missing the purpose of the change, which AFAIR was a failure of
>>>> something.
>>>>
>>>> Comments welcome!
>>>>
>>>> - Arnaud
>>>>
>>>> Arnaud Lacombe (7):
>>>> kconfig/Makefile: add pretty printer for moc(1)
>>>> kconfig/Makefile: ensure `conf' appears last in `hostprogs-y'
>>>> kconfig/check.sh: prepare for generic check
>>>> kconfig: move QT checks to `scripts/kconfig/check.sh'
>>>> kconfig: move GTK checks to `scripts/kconfig/check.sh'
>>>> kconfig: move ncurses checks to `scripts/kconfig/check.sh'
>>>> kconfig: add stub for nconf checks
>>>>
>>>> scripts/kconfig/Makefile | 155 +++++-----------------
>>>> scripts/kconfig/check.sh | 199
>>>> ++++++++++++++++++++++++++--
>>>> scripts/kconfig/lxdialog/check-lxdialog.sh | 84 ------------
>>>> 3 files changed, 223 insertions(+), 215 deletions(-)
>>>>
>>> ping ?
>>
>> Pong. The series looks fine to me. I have no strong opinion about the name
>> of the check script, pick whatever you like and send a series with your
>> signoff.
>>
> The following changes since commit 322a8b034003c0d46d39af85bf24fee27b902f48:
>
> Linux 3.1-rc1 (2011-08-07 18:23:30 -0700)
>
> are available in the git repository at:
> git@github.com:lacombar/linux-2.6.git master/kconfig-generic-checks
[...]
> kconfig: move ncurses checks to `scripts/kconfig/check.sh'
Hi,
this broke make nconfig for me, because it does no longer passes
-I/usr/include/ncurses to the compiler and so menu.h is not found. Also,
scripts/kconfig/lxdialog/check-lxdialog.sh was left empty by this commit.
Michal
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2011-08-19 14:02 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 19:16 [RFC] Kconfig library check merge Arnaud Lacombe
2011-07-01 14:11 ` Michal Marek
2011-07-02 0:33 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 0/7] " Arnaud Lacombe
2011-07-02 1:47 ` [RFC 1/7] kconfig/Makefile: add pretty printer for moc(1) Arnaud Lacombe
2011-07-02 1:47 ` [RFC 2/7] kconfig/Makefile: ensure `conf' appears last in `hostprogs-y' Arnaud Lacombe
2011-07-02 1:47 ` [RFC 3/7] kconfig/check.sh: prepare for generic check Arnaud Lacombe
2011-07-05 22:37 ` Valdis.Kletnieks
2011-07-05 22:48 ` Arnaud Lacombe
2011-07-02 1:47 ` [RFC 4/7] kconfig: move QT checks to `scripts/kconfig/check.sh' Arnaud Lacombe
2011-07-02 1:47 ` [RFC 5/7] kconfig: move GTK " Arnaud Lacombe
2011-07-02 1:47 ` [RFC 6/7] kconfig: move ncurses " Arnaud Lacombe
2011-07-02 1:47 ` [RFC 7/7] kconfig: add stub for nconf checks Arnaud Lacombe
2011-07-18 19:03 ` [RFC 0/7] Kconfig library check merge Arnaud Lacombe
2011-07-19 13:06 ` Michal Marek
2011-08-16 5:29 ` Arnaud Lacombe
2011-08-19 14:02 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox