]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: remove 'addtree' and 'flags' magic for header search paths
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 May 2019 06:22:17 +0000 (15:22 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 18 May 2019 02:49:57 +0000 (11:49 +0900)
commit1e524173bb2e9204cd5513bae768b6443a5617ed
treeaef9cb28da3409096df0239e3e315c4787fd5787
parenta87b6d5b542997705717c9d66cfb7a8e60b66224
kbuild: remove 'addtree' and 'flags' magic for header search paths

The 'addtree' and 'flags' in scripts/Kbuild.include are so compilecated
and ugly.

As I mentioned in [1], Kbuild should stop automatic prefixing of header
search path options.

I fixed up (almost) all Makefiles in the kernel. Now 'addtree' and
'flags' have been removed.

Kbuild still caters to add $(srctree)/$(src) and $(objtree)/$(obj)
to the header search path for O= building, but never touches extra
compiler options from ccflags-y etc.

[1]: https://patchwork.kernel.org/patch/9632347/

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Kbuild.include
scripts/Makefile.host
scripts/Makefile.lib