mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kbuild: don't use a symlink for update-po-config
@ 2011-10-22 15:19 Peter Foley
  2011-12-18 20:57 ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Foley @ 2011-10-22 15:19 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Linux Kbuild Mailing List, mmarek

This patch changes update-po-config to not create a symlink in arch/um 
because this fails with make O= builds.
It also improves the V=0 output. 

  GEN     /usr/src/lto/work/Makefile
  GEN config
ln: failed to create symbolic link `arch/um/Kconfig': No such file or directory
make[3]: *** [update-po-config] Error 1
make[2]: *** [update-po-config] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Signed-off-by: Peter Foley <pefoley2@verizon.net>
---
 scripts/kconfig/Makefile |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 82d2eb2..1d99a08 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -74,9 +74,8 @@ localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
 
 # Create new linux.pot file
 # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
-# The symlink is used to repair a deficiency in arch/um
 update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
-	$(Q)echo "  GEN config"
+	$(Q)echo "  GEN     config.pot"
 	$(Q)xgettext --default-domain=linux                         \
 	    --add-comments --keyword=_ --keyword=N_                 \
 	    --from-code=UTF-8                                       \
@@ -84,16 +83,16 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
 	    --directory=$(srctree) --directory=$(objtree)           \
 	    --output $(obj)/config.pot
 	$(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
-	$(Q)ln -fs Kconfig.x86 arch/um/Kconfig
-	$(Q)(for i in `ls $(srctree)/arch/*/Kconfig`;    \
+	$(Q)(for i in `ls $(srctree)/arch/*/Kconfig`     \
+			$(srctree)/arch/um/Kconfig.x86;  \
 	    do                                           \
-		echo "  GEN $$i";                        \
+		echo "  GEN     $$i";                    \
 		$(obj)/kxgettext $$i                     \
 		     >> $(obj)/config.pot;               \
 	    done )
+	$(Q)echo "  GEN     linux.pot"
 	$(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
 	    --output $(obj)/linux.pot
-	$(Q)rm -f $(srctree)/arch/um/Kconfig
 	$(Q)rm -f $(obj)/config.pot
 
 PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
-- 
1.7.7


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] kbuild: don't use a symlink for update-po-config
  2011-10-22 15:19 [PATCH] kbuild: don't use a symlink for update-po-config Peter Foley
@ 2011-12-18 20:57 ` Michal Marek
  2011-12-18 21:05   ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2011-12-18 20:57 UTC (permalink / raw)
  To: Peter Foley; +Cc: Linux Kernel Mailing List, Linux Kbuild Mailing List

On Sat, Oct 22, 2011 at 11:19:22AM -0400, Peter Foley wrote:
> This patch changes update-po-config to not create a symlink in arch/um 
> because this fails with make O= builds.
> It also improves the V=0 output. 
> 
>   GEN     /usr/src/lto/work/Makefile
>   GEN config
> ln: failed to create symbolic link `arch/um/Kconfig': No such file or directory
> make[3]: *** [update-po-config] Error 1
> make[2]: *** [update-po-config] Error 2
> make[1]: *** [sub-make] Error 2
> make: *** [all] Error 2
> 
> Signed-off-by: Peter Foley <pefoley2@verizon.net>
> ---
>  scripts/kconfig/Makefile |   11 +++++------
>  1 files changed, 5 insertions(+), 6 deletions(-)

Applied to kbuild.git#kconfig, thanks.

Michal

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] kbuild: don't use a symlink for update-po-config
  2011-12-18 20:57 ` Michal Marek
@ 2011-12-18 21:05   ` Michal Marek
  0 siblings, 0 replies; 3+ messages in thread
From: Michal Marek @ 2011-12-18 21:05 UTC (permalink / raw)
  To: Peter Foley; +Cc: Linux Kernel Mailing List, Linux Kbuild Mailing List

On Sun, Dec 18, 2011 at 09:57:25PM +0100, Michal Marek wrote:
> On Sat, Oct 22, 2011 at 11:19:22AM -0400, Peter Foley wrote:
> > This patch changes update-po-config to not create a symlink in arch/um 
> > because this fails with make O= builds.
> > It also improves the V=0 output. 
> > 
> >   GEN     /usr/src/lto/work/Makefile
> >   GEN config
> > ln: failed to create symbolic link `arch/um/Kconfig': No such file or directory
> > make[3]: *** [update-po-config] Error 1
> > make[2]: *** [update-po-config] Error 2
> > make[1]: *** [sub-make] Error 2
> > make: *** [all] Error 2
> > 
> > Signed-off-by: Peter Foley <pefoley2@verizon.net>
> > ---
> >  scripts/kconfig/Makefile |   11 +++++------
> >  1 files changed, 5 insertions(+), 6 deletions(-)
> 
> Applied to kbuild.git#kconfig, thanks.

After appying this, I noticed that UML changed once more in 3.2, so this
fix is not sufficient. So I'll instead apply a fix from Paul Bolle to
the rc-fixes branch and send it to Linus for 3.2. Please send a patch
that only fixes the alignment issue in make output.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-18 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-22 15:19 [PATCH] kbuild: don't use a symlink for update-po-config Peter Foley
2011-12-18 20:57 ` Michal Marek
2011-12-18 21:05   ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®