kbuild: Initialize exported variables
authorMichal Marek <mmarek@suse.com>
Tue, 7 Jun 2016 09:57:02 +0000 (11:57 +0200)
committerMichal Marek <mmarek@suse.com>
Tue, 7 Jun 2016 21:39:03 +0000 (23:39 +0200)
commitb36fad65d61fffe4b662d4bfb1ed673c455a36a2
treeeb05dc1d758ff5c025ec39e0a19f1c8310b36e85
parent1a695a905c18548062509178b98bc91e67510864
kbuild: Initialize exported variables

The NOSTDINC_FLAGS variable is exported, so it needs to be cleared to
avoid duplicating its content when running make from within make (e.g.
in the packaging targets). This became an issue after commit
9c8fa9bc08f6 ("kbuild: fix if_change and friends to consider argument
order"), which no longer ignores the duplicate options. As Paulo Zanoni
points out, the LDFLAGS_vmlinux variable has the same problem.

Reported-by: "Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
Fixes: 9c8fa9bc08f6 ("kbuild: fix if_change and friends to consider argument order")
Signed-off-by: Michal Marek <mmarek@suse.com>
Makefile