aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2013-02-02 05:18:35 -0500
committerMichal Marek <mmarek@suse.cz>2013-02-22 05:48:15 -0500
commit9b58b9281d296d8e679e394d2aa5a02102dd8fe8 (patch)
treead9dd0ab9c3f687e4e4453f4f60f04de549b2867 /scripts
parent03b25b47e0f4ebf3d37ace065c3847230ebdd27d (diff)
kbuild: Fix destination-y for installed headers
Commit 10b63956fce7f369cc37fd4d994f09bd5203efe4 which plumbed in UAPI broke the destination-y functionality of scripts/Makefile.headersinst. The variable destination-y is used in a := assignment and so is expanded at declaration time, and the include of the Kbuild fragments that set destination-y to something is after this time, so it now always expands empty. There are no in-tree users of destination-y, but it allows any Kbuild-fragment to redirect where headers are installed. Just move the assignment of the variable that uses it below the include of the Kbuild fragment. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> Cc: Michal Marek <mmarek@suse.cz> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.headersinst6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst
index 06ba4a70bd4d..25f216a841d5 100644
--- a/scripts/Makefile.headersinst
+++ b/scripts/Makefile.headersinst
@@ -7,15 +7,15 @@
7# 7#
8# ========================================================================== 8# ==========================================================================
9 9
10# called may set destination dir (when installing to asm/)
11_dst := $(or $(destination-y),$(dst),$(obj))
12
13# generated header directory 10# generated header directory
14gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj))) 11gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj)))
15 12
16kbuild-file := $(srctree)/$(obj)/Kbuild 13kbuild-file := $(srctree)/$(obj)/Kbuild
17include $(kbuild-file) 14include $(kbuild-file)
18 15
16# called may set destination dir (when installing to asm/)
17_dst := $(or $(destination-y),$(dst),$(obj))
18
19old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild 19old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild
20ifneq ($(wildcard $(old-kbuild-file)),) 20ifneq ($(wildcard $(old-kbuild-file)),)
21include $(old-kbuild-file) 21include $(old-kbuild-file)