diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-29 06:46:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-29 06:46:14 -0500 |
commit | 5ea293a9048d3a58cb0c840fa719d85ad14cba47 (patch) | |
tree | 88d1dd1eece2cfcbd858ff2c00fb0240dcfab3c7 /scripts/kconfig/Makefile | |
parent | 03bc26cfefd6db756e6bc7fcda11dc17ada7be16 (diff) | |
parent | d3883ecebbf9e095b9e379dabbbe8b2c1ee7a41c (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/Makefile | 39 |
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 | |||
24 | silentoldconfig: $(obj)/conf | 24 | silentoldconfig: $(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 |
30 | update-po-config: $(obj)/kxgettext | 30 | update-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 | ||
94 | HOST_EXTRACFLAGS += -DLOCALE | 97 | HOST_EXTRACFLAGS += -DLOCALE |
95 | 98 | ||
96 | PHONY += $(obj)/dochecklxdialog | ||
97 | $(obj)/dochecklxdialog: | ||
98 | $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES) | ||
99 | |||
100 | always := 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 | |||
142 | endif | 139 | endif |
143 | 140 | ||
144 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ | 141 | clean-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 |
146 | clean-files += mconf qconf gconf | 143 | clean-files += mconf qconf gconf |
144 | clean-files += config.pot linux.pot | ||
145 | |||
146 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) | ||
147 | PHONY += $(obj)/dochecklxdialog | ||
148 | $(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog | ||
149 | $(obj)/dochecklxdialog: | ||
150 | $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) | ||
151 | |||
152 | always := dochecklxdialog | ||
147 | 153 | ||
148 | # Add environment specific flags | 154 | # Add environment specific flags |
149 | HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) | 155 | HOST_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 |