aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-01-29 06:46:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-01-29 06:46:14 -0500
commit5ea293a9048d3a58cb0c840fa719d85ad14cba47 (patch)
tree88d1dd1eece2cfcbd858ff2c00fb0240dcfab3c7 /scripts/kconfig/Makefile
parent03bc26cfefd6db756e6bc7fcda11dc17ada7be16 (diff)
parentd3883ecebbf9e095b9e379dabbbe8b2c1ee7a41c (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (79 commits) Remove references to "make dep" kconfig: document use of HAVE_* Introduce new section reference annotations tags: __ref, __refdata, __refconst kbuild: warn about ld added unique sections kbuild: add verbose option to Section mismatch reporting in modpost kconfig: tristate choices with mixed tristate and boolean values asm-generic/vmlix.lds.h: simplify __mem{init,exit}* dependencies remove __attribute_used__ kbuild: support ARCH=x86 in buildtar kconfig: remove "enable" kbuild: simplified warning report in modpost kbuild: introduce a few helpers in modpost kbuild: use simpler section mismatch warnings in modpost kbuild: link vmlinux.o before kallsyms passes kbuild: introduce new option to enhance section mismatch analysis Use separate sections for __dev/__cpu/__mem code/data compiler.h: introduce __section() all archs: consolidate init and exit sections in vmlinux.lds.h kbuild: check section names consistently in modpost kbuild: introduce blacklisting in modpost ...
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile39
1 files changed, 24 insertions, 15 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 1ad6f7fc490a..32e8c5a227c3 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -24,22 +24,25 @@ oldconfig: $(obj)/conf
24silentoldconfig: $(obj)/conf 24silentoldconfig: $(obj)/conf
25 $< -s $(Kconfig) 25 $< -s $(Kconfig)
26 26
27# Create new linux.po file 27# Create new linux.pot file
28# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files 28# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
29# The symlink is used to repair a deficiency in arch/um 29# The symlink is used to repair a deficiency in arch/um
30update-po-config: $(obj)/kxgettext 30update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
31 xgettext --default-domain=linux \ 31 $(Q)echo " GEN config"
32 $(Q)xgettext --default-domain=linux \
32 --add-comments --keyword=_ --keyword=N_ \ 33 --add-comments --keyword=_ --keyword=N_ \
33 --from-code=UTF-8 \ 34 --from-code=UTF-8 \
34 --files-from=scripts/kconfig/POTFILES.in \ 35 --files-from=scripts/kconfig/POTFILES.in \
35 --output $(obj)/config.pot 36 --output $(obj)/config.pot
36 $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot 37 $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
37 $(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch 38 $(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
38 (for i in `ls arch/`; \ 39 $(Q)(for i in `ls arch/`; \
39 do \ 40 do \
40 $(obj)/kxgettext arch/$$i/Kconfig; \ 41 echo " GEN $$i"; \
41 done ) >> $(obj)/config.pot 42 $(obj)/kxgettext arch/$$i/Kconfig \
42 msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ 43 >> $(obj)/config.pot; \
44 done )
45 $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
43 --output $(obj)/linux.pot 46 --output $(obj)/linux.pot
44 $(Q)rm -f arch/um/Kconfig.arch 47 $(Q)rm -f arch/um/Kconfig.arch
45 $(Q)rm -f $(obj)/config.pot 48 $(Q)rm -f $(obj)/config.pot
@@ -93,12 +96,6 @@ HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
93 96
94HOST_EXTRACFLAGS += -DLOCALE 97HOST_EXTRACFLAGS += -DLOCALE
95 98
96PHONY += $(obj)/dochecklxdialog
97$(obj)/dochecklxdialog:
98 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES)
99
100always := dochecklxdialog
101
102 99
103# =========================================================================== 100# ===========================================================================
104# Shared Makefile for the various kconfig executables: 101# Shared Makefile for the various kconfig executables:
@@ -142,8 +139,17 @@ gconf-objs := gconf.o kconfig_load.o zconf.tab.o
142endif 139endif
143 140
144clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ 141clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \
145 .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c 142 .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
146clean-files += mconf qconf gconf 143clean-files += mconf qconf gconf
144clean-files += config.pot linux.pot
145
146# Check that we have the required ncurses stuff installed for lxdialog (menuconfig)
147PHONY += $(obj)/dochecklxdialog
148$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog
149$(obj)/dochecklxdialog:
150 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)
151
152always := dochecklxdialog
147 153
148# Add environment specific flags 154# Add environment specific flags
149HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) 155HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS))
@@ -248,6 +254,9 @@ $(obj)/%.moc: $(src)/%.h
248$(obj)/lkc_defs.h: $(src)/lkc_proto.h 254$(obj)/lkc_defs.h: $(src)/lkc_proto.h
249 sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' 255 sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
250 256
257# Extract gconf menu items for I18N support
258$(obj)/gconf.glade.h: $(obj)/gconf.glade
259 intltool-extract --type=gettext/glade $(obj)/gconf.glade
251 260
252### 261###
253# The following requires flex/bison/gperf 262# The following requires flex/bison/gperf