diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 03:22:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 03:22:26 -0400 |
commit | f33a3faa25c569d2a7640de66bea69e15c12ecd1 (patch) | |
tree | fd76278083896f1b9e9cac0870a15b5a4f5d6655 /scripts/kconfig | |
parent | 1b5a5f59e3435337bede67b9255bbb1d39fc4827 (diff) | |
parent | 30142230a730263e9989e0174b74c2429e041c8c (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild changes from Michal Marek:
- fix for handling dependencies of *-objs targets by Masahiro Yamada
- lots of cleanups in the kbuild machinery, also by Masahiro
- fixes for the kconfig build to use an UTF-8 capable ncurses library
if possible and to build on not-so-standard installs
- some more minor fixes
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
kbuild: Do not reference *-n variables in the Makefile
kbuild: simplify build, clean, modbuiltin shorthands
kbuild: arm: Do not define "comma" twice
kbuild: remove obj-n and lib-n handling
kbuild: remove unnecessary variable initializaions
kbuild: remove unnecessary "obj- := dummy.o" trick
kbuild: handle C=... and M=... after entering into build directory
kbuild: use $(Q) for sub-make target
kbuild: fake the "Entering directory ..." message more simply
kconfig/lxdialog: get ncurses CFLAGS with pkg-config
kconfig: nconfig: fix multi-byte UTF handling
kconfig: lxdialog: fix spelling
kbuild: Make scripts executable
kbuild: remove redundant clean-files from scripts/kconfig/Makefile
kbuild: refactor script/kconfig/Makefile
kbuild: handle the dependency of multi-objs hostprogs appropriately
kbuild: handle multi-objs dependency appropriately
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/Makefile | 38 | ||||
-rwxr-xr-x[-rw-r--r--] | scripts/kconfig/lxdialog/check-lxdialog.sh | 6 | ||||
-rw-r--r-- | scripts/kconfig/lxdialog/dialog.h | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | scripts/kconfig/streamline_config.pl | 0 |
4 files changed, 11 insertions, 35 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ebf40f6edb4d..9645c0739386 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -176,39 +176,10 @@ qconf-cxxobjs := qconf.o | |||
176 | qconf-objs := zconf.tab.o | 176 | qconf-objs := zconf.tab.o |
177 | gconf-objs := gconf.o zconf.tab.o | 177 | gconf-objs := gconf.o zconf.tab.o |
178 | 178 | ||
179 | hostprogs-y := conf | 179 | hostprogs-y := conf nconf mconf kxgettext qconf gconf |
180 | |||
181 | ifeq ($(MAKECMDGOALS),nconfig) | ||
182 | hostprogs-y += nconf | ||
183 | endif | ||
184 | |||
185 | ifeq ($(MAKECMDGOALS),menuconfig) | ||
186 | hostprogs-y += mconf | ||
187 | endif | ||
188 | |||
189 | ifeq ($(MAKECMDGOALS),update-po-config) | ||
190 | hostprogs-y += kxgettext | ||
191 | endif | ||
192 | |||
193 | ifeq ($(MAKECMDGOALS),xconfig) | ||
194 | qconf-target := 1 | ||
195 | endif | ||
196 | ifeq ($(MAKECMDGOALS),gconfig) | ||
197 | gconf-target := 1 | ||
198 | endif | ||
199 | |||
200 | |||
201 | ifeq ($(qconf-target),1) | ||
202 | hostprogs-y += qconf | ||
203 | endif | ||
204 | |||
205 | ifeq ($(gconf-target),1) | ||
206 | hostprogs-y += gconf | ||
207 | endif | ||
208 | 180 | ||
209 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck | 181 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck |
210 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h | 182 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h |
211 | clean-files += mconf qconf gconf nconf | ||
212 | clean-files += config.pot linux.pot | 183 | clean-files += config.pot linux.pot |
213 | 184 | ||
214 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) | 185 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) |
@@ -239,11 +210,12 @@ HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ | |||
239 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) | 210 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) |
240 | 211 | ||
241 | HOSTLOADLIBES_nconf = $(shell \ | 212 | HOSTLOADLIBES_nconf = $(shell \ |
242 | pkg-config --libs menu panel ncurses 2>/dev/null \ | 213 | pkg-config --libs menuw panelw ncursesw 2>/dev/null \ |
214 | || pkg-config --libs menu panel ncurses 2>/dev/null \ | ||
243 | || echo "-lmenu -lpanel -lncurses" ) | 215 | || echo "-lmenu -lpanel -lncurses" ) |
244 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck | 216 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck |
245 | 217 | ||
246 | ifeq ($(qconf-target),1) | 218 | ifeq ($(MAKECMDGOALS),xconfig) |
247 | $(obj)/.tmp_qtcheck: $(src)/Makefile | 219 | $(obj)/.tmp_qtcheck: $(src)/Makefile |
248 | -include $(obj)/.tmp_qtcheck | 220 | -include $(obj)/.tmp_qtcheck |
249 | 221 | ||
@@ -300,7 +272,7 @@ endif | |||
300 | 272 | ||
301 | $(obj)/gconf.o: $(obj)/.tmp_gtkcheck | 273 | $(obj)/gconf.o: $(obj)/.tmp_gtkcheck |
302 | 274 | ||
303 | ifeq ($(gconf-target),1) | 275 | ifeq ($(MAKECMDGOALS),gconfig) |
304 | -include $(obj)/.tmp_gtkcheck | 276 | -include $(obj)/.tmp_gtkcheck |
305 | 277 | ||
306 | # GTK needs some extra effort, too... | 278 | # GTK needs some extra effort, too... |
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index 9d2a4c585ee1..5075ebf2d3b9 100644..100755 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh | |||
@@ -21,7 +21,11 @@ ldflags() | |||
21 | # Where is ncurses.h? | 21 | # Where is ncurses.h? |
22 | ccflags() | 22 | ccflags() |
23 | { | 23 | { |
24 | if [ -f /usr/include/ncursesw/curses.h ]; then | 24 | if pkg-config --cflags ncursesw 2>/dev/null; then |
25 | echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1' | ||
26 | elif pkg-config --cflags ncurses 2>/dev/null; then | ||
27 | echo '-DCURSES_LOC="<ncurses.h>"' | ||
28 | elif [ -f /usr/include/ncursesw/curses.h ]; then | ||
25 | echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' | 29 | echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' |
26 | echo ' -DNCURSES_WIDECHAR=1' | 30 | echo ' -DNCURSES_WIDECHAR=1' |
27 | elif [ -f /usr/include/ncurses/ncurses.h ]; then | 31 | elif [ -f /usr/include/ncurses/ncurses.h ]; then |
diff --git a/scripts/kconfig/lxdialog/dialog.h b/scripts/kconfig/lxdialog/dialog.h index b4343d384926..fcffd5b41fb0 100644 --- a/scripts/kconfig/lxdialog/dialog.h +++ b/scripts/kconfig/lxdialog/dialog.h | |||
@@ -170,7 +170,7 @@ char item_tag(void); | |||
170 | /* item list manipulation for lxdialog use */ | 170 | /* item list manipulation for lxdialog use */ |
171 | #define MAXITEMSTR 200 | 171 | #define MAXITEMSTR 200 |
172 | struct dialog_item { | 172 | struct dialog_item { |
173 | char str[MAXITEMSTR]; /* promtp displayed */ | 173 | char str[MAXITEMSTR]; /* prompt displayed */ |
174 | char tag; | 174 | char tag; |
175 | void *data; /* pointer to menu item - used by menubox+checklist */ | 175 | void *data; /* pointer to menu item - used by menubox+checklist */ |
176 | int selected; /* Set to 1 by dialog_*() function if selected. */ | 176 | int selected; /* Set to 1 by dialog_*() function if selected. */ |
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 9cb8522d8d22..9cb8522d8d22 100644..100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl | |||