* [PATCH - Regression] kbuild: fix make headers_check with make 3.80
@ 2013-03-04 20:36 Sam Ravnborg
2013-03-05 14:46 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Sam Ravnborg @ 2013-03-04 20:36 UTC (permalink / raw)
To: Michal Marek, linux-kbuild
Cc: Tetsuo Handa, David Howells, lkml, arnd, tglx, paulmck, davej
Commit 10b63956 ("UAPI: Plumb the UAPI Kbuilds into the user header
installation and checking") introduced a dependency of make 3.81
due to use of $(or ...)
We do not want to lift the requirement to gmake 3.81 just yet...
Included are a straightforward conversion to $(if ...)
Bisected-and-tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 25f216a..477d137 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -14,7 +14,7 @@ kbuild-file := $(srctree)/$(obj)/Kbuild
include $(kbuild-file)
# called may set destination dir (when installing to asm/)
-_dst := $(or $(destination-y),$(dst),$(obj))
+_dst := $(if $(destination-y),$(destination-y),$(if $(dst),$(dst),$(obj)))
old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild
ifneq ($(wildcard $(old-kbuild-file)),)
@@ -48,13 +48,14 @@ all-files := $(header-y) $(genhdr-y) $(wrapper-files)
output-files := $(addprefix $(installdir)/, $(all-files))
input-files := $(foreach hdr, $(header-y), \
- $(or \
+ $(if $(wildcard $(srcdir)/$(hdr)), \
$(wildcard $(srcdir)/$(hdr)), \
- $(wildcard $(oldsrcdir)/$(hdr)), \
- $(error Missing UAPI file $(srcdir)/$(hdr)) \
+ $(if $(wildcard $(oldsrcdir)/$(hdr)), \
+ $(wildcard $(oldsrcdir)/$(hdr)), \
+ $(error Missing UAPI file $(srcdir)/$(hdr))) \
)) \
$(foreach hdr, $(genhdr-y), \
- $(or \
+ $(if $(wildcard $(gendir)/$(hdr)), \
$(wildcard $(gendir)/$(hdr)), \
$(error Missing generated UAPI file $(gendir)/$(hdr)) \
))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH - Regression] kbuild: fix make headers_check with make 3.80
2013-03-04 20:36 [PATCH - Regression] kbuild: fix make headers_check with make 3.80 Sam Ravnborg
@ 2013-03-05 14:46 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2013-03-05 14:46 UTC (permalink / raw)
To: Sam Ravnborg
Cc: linux-kbuild, Tetsuo Handa, David Howells, lkml, arnd, tglx,
paulmck, davej
On 4.3.2013 21:36, Sam Ravnborg wrote:
> Commit 10b63956 ("UAPI: Plumb the UAPI Kbuilds into the user header
> installation and checking") introduced a dependency of make 3.81
> due to use of $(or ...)
>
> We do not want to lift the requirement to gmake 3.81 just yet...
> Included are a straightforward conversion to $(if ...)
>
> Bisected-and-tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
> Cc: David Howells <dhowells@redhat.com>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> ---
Thanks, Sam. I applied the patch to kbuild.git#kbuild and will send it
to Linus.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-05 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04 20:36 [PATCH - Regression] kbuild: fix make headers_check with make 3.80 Sam Ravnborg
2013-03-05 14:46 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox