From: Michal Marek Date: Wed, 19 Aug 2015 15:36:41 +0000 (+0200) Subject: kbuild: Fix clang detection X-Git-Tag: omap-for-v4.3/fixes-rc1~67^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5631d9c429857194bd55d7bcd8fa5bdd1a9899a3;p=pandora-kernel.git kbuild: Fix clang detection We cannot detect clang before including the arch Makefile, because that can set the default cross compiler. We also cannot detect clang after including the arch Makefile, because powerpc wants to know about clang. Solve this by using an deferred variable. This costs us a few shell invocations, but this is only a constant number. Reported-by: Behan Webster Reported-by: Anton Blanchard Signed-off-by: Michal Marek --- Reading git-diff-tree failed