Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a24a1b8e authored by Peter Foley's avatar Peter Foley Committed by Michal Marek
Browse files

kconfig: make update-po-config work in KBUILD_OUTPUT



Signed-off-by: default avatarPeter Foley <pefoley2@verizon.net>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent b24d7d7b
Loading
Loading
Loading
Loading
+9 −7
Original line number Original line Diff line number Diff line
@@ -80,11 +80,12 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
	$(Q)xgettext --default-domain=linux                         \
	$(Q)xgettext --default-domain=linux                         \
	    --add-comments --keyword=_ --keyword=N_                 \
	    --add-comments --keyword=_ --keyword=N_                 \
	    --from-code=UTF-8                                       \
	    --from-code=UTF-8                                       \
	    --files-from=scripts/kconfig/POTFILES.in     \
	    --files-from=$(srctree)/scripts/kconfig/POTFILES.in     \
	    --directory=$(srctree) --directory=$(objtree)           \
	    --output $(obj)/config.pot
	    --output $(obj)/config.pot
	$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
	$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
	$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
	$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
	$(Q)(for i in `ls arch/*/Kconfig`;               \
	$(Q)(for i in `ls $(srctree)/arch/*/Kconfig`;    \
	    do                                           \
	    do                                           \
		echo "  GEN $$i";                        \
		echo "  GEN $$i";                        \
		$(obj)/kxgettext $$i                     \
		$(obj)/kxgettext $$i                     \
@@ -92,7 +93,7 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
	    done )
	    done )
	$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
	$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
	    --output $(obj)/linux.pot
	    --output $(obj)/linux.pot
	$(Q)rm -f arch/um/Kconfig.arch
	$(Q)rm -f $(srctree)/arch/um/Kconfig.arch
	$(Q)rm -f $(obj)/config.pot
	$(Q)rm -f $(obj)/config.pot


PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
@@ -331,7 +332,8 @@ $(obj)/lkc_defs.h: $(src)/lkc_proto.h


# Extract gconf menu items for I18N support
# Extract gconf menu items for I18N support
$(obj)/gconf.glade.h: $(obj)/gconf.glade
$(obj)/gconf.glade.h: $(obj)/gconf.glade
	intltool-extract --type=gettext/glade $(obj)/gconf.glade
	intltool-extract --type=gettext/glade --srcdir=$(srctree) \
	$(obj)/gconf.glade


###
###
# The following requires flex/bison/gperf
# The following requires flex/bison/gperf