]> git.baikalelectronics.ru Git - kernel.git/commit
microblaze: fix endian handling
authorArnd Bergmann <arnd@arndb.de>
Tue, 2 Jan 2018 11:47:19 +0000 (12:47 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 17 Jan 2018 12:34:28 +0000 (13:34 +0100)
commit70341efc25f0cbf94816d17f3cf14cbaaed10dd6
tree84fdb6b857ccd13daffa7af53560ee0799a426b0
parentec7bafaec0d4384e040fa62714e4d6220f837d23
microblaze: fix endian handling

Building an allmodconfig kernel fails horribly because of
endian mismatch. It turns out that the -mlittle-endian
switch was not honored at all as we were using the wrong
Kconfig symbol and failing to apply CPUFLAGS to the CFLAGS.
Finally, the linker flags did not get set right.

This addresses all three of those issues, which now lets
me build both big-endian and little-endian kernels for
testing.

Fixes: ebd947c1efbd ("arch: change default endian for microblaze")
Fixes: fc730f6c812d ("arch/microblaze: add choice for endianness and update Makefile")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/Makefile