xtensa: Setup CROSS_COMPILE at the top
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 12 May 2012 20:39:08 +0000 (22:39 +0200)
committerChris Zankel <chris@zankel.net>
Thu, 4 Oct 2012 19:16:20 +0000 (12:16 -0700)
commit70cefe765433529fc894fd1995a1d5883cb33e05
tree0b14a9b513805c8b5a3611c2862e96155ae970e3
parent9ad79b58510b2845e5ffa77654596d7184a827ab
xtensa: Setup CROSS_COMPILE at the top

CROSS_COMPILE must be setup before using e.g. cc-option (and a few other
as-*, cc-*, ld-* macros), else they will check against the wrong compiler
when cross-compiling, and may invoke the cross compiler with wrong or
suboptimal compiler options.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/Makefile