kbuild: external module build warnings when KBUILD_OUTPUT set and W=1
authorAllan, Bruce W <bruce.w.allan@intel.com>
Tue, 7 Mar 2017 23:48:23 +0000 (15:48 -0800)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 11 Mar 2017 02:25:57 +0000 (11:25 +0900)
commit4607ebf04b8190d2c7aa5504959e9fddfc0cd736
treebfe92937441ba1ec4c08d36178033d01d134a337
parent8b38f890eff6efc153130254a96452570f971159
kbuild: external module build warnings when KBUILD_OUTPUT set and W=1

Commit db547ef19064 ("Kbuild: don't add obj tree in additional includes")
causes warnings (-Wmissing-include-dirs) when compiling external modules
with KBUILD_OUTPUT set and W=1.  This is because $src can be an absolute
path to the external module source which when prefixed with -I$(srctree)/
generates an incorrect directory path.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.lib