diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-15 21:06:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-15 21:06:55 -0400 |
commit | e20437852de4aba31068037a728e2d60cf942f56 (patch) | |
tree | 92a0c4811904b7339116bda267ce340552b761d6 /scripts | |
parent | 236595879b5f838e907d33456b12f3cc23d559bf (diff) | |
parent | c4619bc6fa5149a6ab39be845a39142b6a996ea5 (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild fix from Michal Marek:
"One fix for for make headers_install/headers_check to not require make
3.81. The requirement has been accidentally introduced in 3.7."
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
kbuild: fix make headers_check with make 3.80
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.headersinst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 25f216a841d5..477d137c0557 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
@@ -14,7 +14,7 @@ kbuild-file := $(srctree)/$(obj)/Kbuild | |||
14 | include $(kbuild-file) | 14 | include $(kbuild-file) |
15 | 15 | ||
16 | # called may set destination dir (when installing to asm/) | 16 | # called may set destination dir (when installing to asm/) |
17 | _dst := $(or $(destination-y),$(dst),$(obj)) | 17 | _dst := $(if $(destination-y),$(destination-y),$(if $(dst),$(dst),$(obj))) |
18 | 18 | ||
19 | old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild | 19 | old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild |
20 | ifneq ($(wildcard $(old-kbuild-file)),) | 20 | ifneq ($(wildcard $(old-kbuild-file)),) |
@@ -48,13 +48,14 @@ all-files := $(header-y) $(genhdr-y) $(wrapper-files) | |||
48 | output-files := $(addprefix $(installdir)/, $(all-files)) | 48 | output-files := $(addprefix $(installdir)/, $(all-files)) |
49 | 49 | ||
50 | input-files := $(foreach hdr, $(header-y), \ | 50 | input-files := $(foreach hdr, $(header-y), \ |
51 | $(or \ | 51 | $(if $(wildcard $(srcdir)/$(hdr)), \ |
52 | $(wildcard $(srcdir)/$(hdr)), \ | 52 | $(wildcard $(srcdir)/$(hdr)), \ |
53 | $(wildcard $(oldsrcdir)/$(hdr)), \ | 53 | $(if $(wildcard $(oldsrcdir)/$(hdr)), \ |
54 | $(error Missing UAPI file $(srcdir)/$(hdr)) \ | 54 | $(wildcard $(oldsrcdir)/$(hdr)), \ |
55 | $(error Missing UAPI file $(srcdir)/$(hdr))) \ | ||
55 | )) \ | 56 | )) \ |
56 | $(foreach hdr, $(genhdr-y), \ | 57 | $(foreach hdr, $(genhdr-y), \ |
57 | $(or \ | 58 | $(if $(wildcard $(gendir)/$(hdr)), \ |
58 | $(wildcard $(gendir)/$(hdr)), \ | 59 | $(wildcard $(gendir)/$(hdr)), \ |
59 | $(error Missing generated UAPI file $(gendir)/$(hdr)) \ | 60 | $(error Missing generated UAPI file $(gendir)/$(hdr)) \ |
60 | )) | 61 | )) |