perf: append endianness argument to ld when building for MIPS
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Mon, 22 Feb 2016 10:22:45 +0000 (10:22 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 27 Feb 2016 17:59:34 +0000 (18:59 +0100)
commit7f3a52f981274da2db17500a0908466d6aed83c7
treef4586957fd1c24a4d71e3c6fbffca990c9a5850f
parentb1a3c0abac0dadec8de0fc5f64c2237d340d6579
perf: append endianness argument to ld when building for MIPS

We need to pass an argument to ld for setting the endianness when
building it for MIPS architecture, otherwise the default one will always
be used (which is big endian) and the compilation for little endian will
always fail showing an error like this one:

LD    foo.o
mips-linux-gnu-ld: foo.o: compiled for a little endian system and target
is big endian

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
linux/linux-tool-perf.mk