Skip to content

Commit a24a1b8

Browse files
pefoley2michal42
authored andcommitted
kconfig: make update-po-config work in KBUILD_OUTPUT
Signed-off-by: Peter Foley <pefoley2@verizon.net> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent b24d7d7 commit a24a1b8

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎scripts/kconfig/Makefile‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,23 @@ localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
7777
# The symlink is used to repair a deficiency in arch/um
7878
update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
7979
$(Q)echo " GEN config"
80-
$(Q)xgettext --default-domain=linux \
81-
--add-comments --keyword=_ --keyword=N_ \
82-
--from-code=UTF-8 \
83-
--files-from=scripts/kconfig/POTFILES.in \
80+
$(Q)xgettext --default-domain=linux \
81+
--add-comments --keyword=_ --keyword=N_ \
82+
--from-code=UTF-8 \
83+
--files-from=$(srctree)/scripts/kconfig/POTFILES.in \
84+
--directory=$(srctree) --directory=$(objtree) \
8485
--output $(obj)/config.pot
8586
$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
8687
$(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch
87-
$(Q)(for i in `ls arch/*/Kconfig`; \
88+
$(Q)(for i in `ls $(srctree)/arch/*/Kconfig`; \
8889
do \
8990
echo " GEN $$i"; \
9091
$(obj)/kxgettext $$i \
9192
>> $(obj)/config.pot; \
9293
done )
9394
$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
9495
--output $(obj)/linux.pot
95-
$(Q)rm -f arch/um/Kconfig.arch
96+
$(Q)rm -f $(srctree)/arch/um/Kconfig.arch
9697
$(Q)rm -f $(obj)/config.pot
9798

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

332333
# Extract gconf menu items for I18N support
333334
$(obj)/gconf.glade.h: $(obj)/gconf.glade
334-
intltool-extract --type=gettext/glade $(obj)/gconf.glade
335+
intltool-extract --type=gettext/glade --srcdir=$(srctree) \
336+
$(obj)/gconf.glade
335337

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

0 commit comments

Comments
 (0)