diff options
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 |