* make V=1 broken
@ 2008-02-10 22:59 Sam Ravnborg
2008-02-11 2:46 ` shell command is empty, when "silent" (Re: make V=1 broken) Oleg Verych
0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2008-02-10 22:59 UTC (permalink / raw)
To: linux-kbuild
make V=1 is broken at the moment.
I do not have possibility to look at it until
in ~20 hours.
So if anyone can help until then...
To reproduce:
make defconfig
make V=1
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* shell command is empty, when "silent" (Re: make V=1 broken)
2008-02-10 22:59 make V=1 broken Sam Ravnborg
@ 2008-02-11 2:46 ` Oleg Verych
2008-02-11 13:34 ` Sam Ravnborg
0 siblings, 1 reply; 4+ messages in thread
From: Oleg Verych @ 2008-02-11 2:46 UTC (permalink / raw)
To: Sam Ravnborg
On Sun, Feb 10, 2008 at 11:59:40PM +0100, Sam Ravnborg wrote:
> make V=1 is broken at the moment.
>
> I do not have possibility to look at it until
> in ~20 hours.
> So if anyone can help until then...
>
> To reproduce:
>
> make defconfig
> make V=1
>
Somehow $(quiet) == "", when it should be "silent_". Thus command is
empty (just ";"), which is error.
,--`make V=1`--
| GEN /dev/shm/blinux/Makefile
|set -e; ; mkdir -p include/linux/;
[]
|/bin/sh: Syntax error: ";" unexpected
`--
That "silent" juggling with `echo` is overhead, thus remove it.
Signed-off-by: Oleg Verych <olecom@flower.upol.cz>
--
My (i.e. wrong:) view of the patch. Side effect -- empty line in V=2
garbage output.
--- /mnt/work/pc/kernel.org/git-repoes/linux-2.6/scripts/Kbuild.include 2008-02-11 02:05:18.619239750 +0100
+++ /mnt/zdev0/linux-2.6/scripts/Kbuild.include 2008-02-11 03:30:11.000000000 +0100
@@ -39,19 +39,18 @@
# - If they are equal no change, and no timestamp update
# - stdin is piped in from the first prerequisite ($<) so one has
# to specify a valid file as first prerequisite (often the kbuild file)
- quiet_chk_filechk = echo ' CHK $@'
-silent_chk_filechk = :
- quiet_upd_filechk = echo ' UPD $@'
-silent_upd_filechk = :
+quiet_chk_filechk = ' CHK $@'
+quiet_upd_filechk = ' UPD $@'
+
define filechk
$(Q)set -e; \
- $($(quiet)chk_filechk); \
+ echo $($(quiet)chk_filechk); \
mkdir -p $(dir $@); \
$(filechk_$(1)) < $< > $@.tmp; \
if [ -r $@ ] && cmp -s $@ $@.tmp; then \
rm -f $@.tmp; \
else \
- $($(quiet)upd_filechk); \
+ echo $($(quiet)upd_filechk); \
mv -f $@.tmp $@; \
fi
endef
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: shell command is empty, when "silent" (Re: make V=1 broken)
2008-02-11 2:46 ` shell command is empty, when "silent" (Re: make V=1 broken) Oleg Verych
@ 2008-02-11 13:34 ` Sam Ravnborg
2008-02-11 14:32 ` Oleg Verych
0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2008-02-11 13:34 UTC (permalink / raw)
To: Oleg Verych; +Cc: Sam Ravnborg
On Mon, Feb 11, 2008 at 03:46:40AM +0100, Oleg Verych wrote:
> On Sun, Feb 10, 2008 at 11:59:40PM +0100, Sam Ravnborg wrote:
> > make V=1 is broken at the moment.
> >
> > I do not have possibility to look at it until
> > in ~20 hours.
> > So if anyone can help until then...
> >
> > To reproduce:
> >
> > make defconfig
> > make V=1
> >
>
> Somehow $(quiet) == "", when it should be "silent_". Thus command is
> empty (just ";"), which is error.
>
> ,--`make V=1`--
> | GEN /dev/shm/blinux/Makefile
> |set -e; ; mkdir -p include/linux/;
> []
> |/bin/sh: Syntax error: ";" unexpected
> `--
>
> That "silent" juggling with `echo` is overhead, thus remove it.
Hi Oleg.
People has requested to make the build even more silent with
make -s. So when Mike provided a patch is was applied (but unfortunately faulty).
So I fixed it by appended patch.
The right fix would have been to resue echo-cmd but that
required a bit more rework.
Sam
From 49af821e4b1c07e756cbc2e389eba9d885912602 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <sam@ravnborg.org>
Date: Mon, 11 Feb 2008 14:26:26 +0100
Subject: [PATCH] kbuild: fix make V=1
When make -s support were added to filechk to
combination created with make V=1 were not
covered.
Fix it by explicitly cover this case too.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Mike Frysinger <vapier@gentoo.org>
---
scripts/Kbuild.include | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index da3559e..d64e6ba 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -39,10 +39,13 @@ escsq = $(subst $(squote),'\$(squote)',$1)
# - If they are equal no change, and no timestamp update
# - stdin is piped in from the first prerequisite ($<) so one has
# to specify a valid file as first prerequisite (often the kbuild file)
+ chk_filechk = :
quiet_chk_filechk = echo ' CHK $@'
silent_chk_filechk = :
+ upd_filechk = :
quiet_upd_filechk = echo ' UPD $@'
silent_upd_filechk = :
+
define filechk
$(Q)set -e; \
$($(quiet)chk_filechk); \
--
1.5.4.rc3.14.g44397
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: shell command is empty, when "silent" (Re: make V=1 broken)
2008-02-11 13:34 ` Sam Ravnborg
@ 2008-02-11 14:32 ` Oleg Verych
0 siblings, 0 replies; 4+ messages in thread
From: Oleg Verych @ 2008-02-11 14:32 UTC (permalink / raw)
To: Sam Ravnborg
On Mon, Feb 11, 2008 at 02:34:53PM +0100, Sam Ravnborg wrote:
> On Mon, Feb 11, 2008 at 03:46:40AM +0100, Oleg Verych wrote:
[]
> > ,--`make V=1`--
> > | GEN /dev/shm/blinux/Makefile
> > |set -e; ; mkdir -p include/linux/;
> > []
> > |/bin/sh: Syntax error: ";" unexpected
> > `--
> >
> > That "silent" juggling with `echo` is overhead, thus remove it.
>
> Hi Oleg.
> People has requested to make the build even more silent with
> make -s. So when Mike provided a patch is was applied (but unfortunately faulty).
>
> So I fixed it by appended patch.
> The right fix would have been to resue echo-cmd but that
> required a bit more rework.
[]
Memory is cheap, efficiency is uselsess.
Funny, that *debug* output didn't give a clue for quite some people.
Aah, why do i care?
> # to specify a valid file as first prerequisite (often the kbuild file)
> + chk_filechk = :
> quiet_chk_filechk = echo ' CHK $@'
> silent_chk_filechk = :
> + upd_filechk = :
> quiet_upd_filechk = echo ' UPD $@'
> silent_upd_filechk = :
> +
> define filechk
> $(Q)set -e; \
> $($(quiet)chk_filechk); \
> --
> 1.5.4.rc3.14.g44397
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-11 14:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-10 22:59 make V=1 broken Sam Ravnborg
2008-02-11 2:46 ` shell command is empty, when "silent" (Re: make V=1 broken) Oleg Verych
2008-02-11 13:34 ` Sam Ravnborg
2008-02-11 14:32 ` Oleg Verych
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox