kbuild: Fix destination-y for installed headers
authorJesper Nilsson <jesper.nilsson@axis.com>
Sat, 2 Feb 2013 10:18:35 +0000 (11:18 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 22 Feb 2013 10:48:15 +0000 (11:48 +0100)
commit9b58b9281d296d8e679e394d2aa5a02102dd8fe8
treead9dd0ab9c3f687e4e4453f4f60f04de549b2867
parent03b25b47e0f4ebf3d37ace065c3847230ebdd27d
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>
scripts/Makefile.headersinst