Kbuild: don't add obj tree in additional includes
authorArnd Bergmann <arnd@arndb.de>
Wed, 15 Jun 2016 15:45:47 +0000 (17:45 +0200)
committerMichal Marek <mmarek@suse.com>
Mon, 18 Jul 2016 19:31:35 +0000 (21:31 +0200)
commitdb547ef1906400eb34682e43035dd4d81b9fdcfb
tree9cebb398039e98e20f336ecfaa9d9a0ac2eff432
parent58ab5e0c2c40ec48e682179e8f2e4cda2ece201b
Kbuild: don't add obj tree in additional includes

When building with separate object directories and driver specific
Makefiles that add additional header include paths, Kbuild adjusts
the gcc flags so that we include both the directory in the source
tree and in the object tree.

However, due to another bug I fixed earlier, this did not actually
include the correct directory in the object tree, so we know that
we only really need the source tree here. Also, including the
object tree sometimes causes warnings about nonexisting directories
when the include path only exists in the source.

This changes the logic to only emit the -I argument for the srctree,
not for objects. We still need both $(srctree)/$(src) and $(obj)
though, so I'm adding them manually.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/Kbuild.include
scripts/Makefile.lib