]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Always specify -EB or -EL when using clang
authorPaul Burton <paul.burton@mips.com>
Tue, 7 Aug 2018 23:06:41 +0000 (16:06 -0700)
committerPaul Burton <paul.burton@mips.com>
Tue, 7 Aug 2018 23:16:08 +0000 (16:16 -0700)
commit10d92631051563a1e686700b2fd305a83b1f9a82
tree1d98da834a50213a3572f599c2c49fbff62311ed
parenta9087425ef5cefbf915af714136e58fc95104840
MIPS: Always specify -EB or -EL when using clang

When building using clang, always specify -EB or -EL in order to ensure
we target the desired endianness.

Since clang cross compiles using a single compiler build with multiple
targets, our -dumpmachine tests which don't specify clang's --target
argument check output based upon the build machine rather than the
machine our build will target. This means our detection of whether to
specify -EB fails miserably & we never do. Providing the endianness flag
unconditionally for clang resolves this issue & simplifies the clang
path somewhat.

Signed-off-by: Paul Burton <paul.burton@mips.com>
arch/mips/Makefile