]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: Set KBUILD_CFLAGS before incl. arch Makefile
authorChris Fries <cfries@google.com>
Tue, 7 Nov 2017 19:46:13 +0000 (11:46 -0800)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 23 Nov 2017 04:12:37 +0000 (13:12 +0900)
commitb2b8b90e54c89f2356dfac22853c9bedd7fe4718
tree1fa1e2f8859c6b66bf6c928f83198e922d2db86f
parent2f6039f323cf20060ae977ba56f550fa587187cc
kbuild: Set KBUILD_CFLAGS before incl. arch Makefile

Set the clang KBUILD_CFLAGS up before including arch/ Makefiles,
so that ld-options (etc.) can work correctly.

This fixes errors with clang such as ld-options trying to CC
against your host architecture, but LD trying to link against
your target architecture.

Signed-off-by: Chris Fries <cfries@google.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile