diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 368ae306aee4..faa9a4701b6f 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -77,14 +77,15 @@ localyesconfig: $(obj)/streamline_config.pl $(obj)/conf | |||
77 | # The symlink is used to repair a deficiency in arch/um | 77 | # The symlink is used to repair a deficiency in arch/um |
78 | update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | 78 | update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h |
79 | $(Q)echo " GEN config" | 79 | $(Q)echo " GEN config" |
80 | $(Q)xgettext --default-domain=linux \ | 80 | $(Q)xgettext --default-domain=linux \ |
81 | --add-comments --keyword=_ --keyword=N_ \ | 81 | --add-comments --keyword=_ --keyword=N_ \ |
82 | --from-code=UTF-8 \ | 82 | --from-code=UTF-8 \ |
83 | --files-from=scripts/kconfig/POTFILES.in \ | 83 | --files-from=$(srctree)/scripts/kconfig/POTFILES.in \ |
84 | --directory=$(srctree) --directory=$(objtree) \ | ||
84 | --output $(obj)/config.pot | 85 | --output $(obj)/config.pot |
85 | $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot | 86 | $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot |
86 | $(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch | 87 | $(Q)ln -fs Kconfig.x86 arch/um/Kconfig |
87 | $(Q)(for i in `ls arch/*/Kconfig`; \ | 88 | $(Q)(for i in `ls $(srctree)/arch/*/Kconfig`; \ |
88 | do \ | 89 | do \ |
89 | echo " GEN $$i"; \ | 90 | echo " GEN $$i"; \ |
90 | $(obj)/kxgettext $$i \ | 91 | $(obj)/kxgettext $$i \ |
@@ -92,7 +93,7 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | |||
92 | done ) | 93 | done ) |
93 | $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ | 94 | $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ |
94 | --output $(obj)/linux.pot | 95 | --output $(obj)/linux.pot |
95 | $(Q)rm -f arch/um/Kconfig.arch | 96 | $(Q)rm -f $(srctree)/arch/um/Kconfig |
96 | $(Q)rm -f $(obj)/config.pot | 97 | $(Q)rm -f $(obj)/config.pot |
97 | 98 | ||
98 | PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig | 99 | PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig |
@@ -168,8 +169,11 @@ conf-objs := conf.o zconf.tab.o | |||
168 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) | 169 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) |
169 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o | 170 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o |
170 | kxgettext-objs := kxgettext.o zconf.tab.o | 171 | kxgettext-objs := kxgettext.o zconf.tab.o |
172 | qconf-cxxobjs := qconf.o | ||
173 | qconf-objs := kconfig_load.o zconf.tab.o | ||
174 | gconf-objs := gconf.o kconfig_load.o zconf.tab.o | ||
171 | 175 | ||
172 | hostprogs-y := conf qconf gconf kxgettext | 176 | hostprogs-y := conf |
173 | 177 | ||
174 | ifeq ($(MAKECMDGOALS),nconfig) | 178 | ifeq ($(MAKECMDGOALS),nconfig) |
175 | hostprogs-y += nconf | 179 | hostprogs-y += nconf |
@@ -179,6 +183,10 @@ ifeq ($(MAKECMDGOALS),menuconfig) | |||
179 | hostprogs-y += mconf | 183 | hostprogs-y += mconf |
180 | endif | 184 | endif |
181 | 185 | ||
186 | ifeq ($(MAKECMDGOALS),update-po-config) | ||
187 | hostprogs-y += kxgettext | ||
188 | endif | ||
189 | |||
182 | ifeq ($(MAKECMDGOALS),xconfig) | 190 | ifeq ($(MAKECMDGOALS),xconfig) |
183 | qconf-target := 1 | 191 | qconf-target := 1 |
184 | endif | 192 | endif |
@@ -188,16 +196,15 @@ endif | |||
188 | 196 | ||
189 | 197 | ||
190 | ifeq ($(qconf-target),1) | 198 | ifeq ($(qconf-target),1) |
191 | qconf-cxxobjs := qconf.o | 199 | hostprogs-y += qconf |
192 | qconf-objs := kconfig_load.o zconf.tab.o | ||
193 | endif | 200 | endif |
194 | 201 | ||
195 | ifeq ($(gconf-target),1) | 202 | ifeq ($(gconf-target),1) |
196 | gconf-objs := gconf.o kconfig_load.o zconf.tab.o | 203 | hostprogs-y += gconf |
197 | endif | 204 | endif |
198 | 205 | ||
199 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ | 206 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck |
200 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h | 207 | clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h |
201 | clean-files += mconf qconf gconf nconf | 208 | clean-files += mconf qconf gconf nconf |
202 | clean-files += config.pot linux.pot | 209 | clean-files += config.pot linux.pot |
203 | 210 | ||
@@ -321,11 +328,12 @@ $(obj)/%.moc: $(src)/%.h | |||
321 | $(KC_QT_MOC) -i $< -o $@ | 328 | $(KC_QT_MOC) -i $< -o $@ |
322 | 329 | ||
323 | $(obj)/lkc_defs.h: $(src)/lkc_proto.h | 330 | $(obj)/lkc_defs.h: $(src)/lkc_proto.h |
324 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' | 331 | $(Q)sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' |
325 | 332 | ||
326 | # Extract gconf menu items for I18N support | 333 | # Extract gconf menu items for I18N support |
327 | $(obj)/gconf.glade.h: $(obj)/gconf.glade | 334 | $(obj)/gconf.glade.h: $(obj)/gconf.glade |
328 | intltool-extract --type=gettext/glade $(obj)/gconf.glade | 335 | $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \ |
336 | $(obj)/gconf.glade | ||
329 | 337 | ||
330 | ### | 338 | ### |
331 | # The following requires flex/bison/gperf | 339 | # The following requires flex/bison/gperf |