MIPS: zboot: Fix the build with XZ compression on older GCC versions
authorAlban Bedel <[email protected]>
Tue, 26 Jan 2016 08:38:27 +0000 (09:38 +0100)
committerRalf Baechle <[email protected]>
Sun, 3 Apr 2016 08:37:13 +0000 (10:37 +0200)
commitc50ec67875363d7a012889d049fb45d3c8ef3c48
tree9d3e3bf04d96dc240dd54e45189da5b44ed06297
parent62d8e64423adf5a044acbdffc6ca69c5b8067702
MIPS: zboot: Fix the build with XZ compression on older GCC versions

Some older GCC version (at least 4.6) emits calls to __bswapsi2() when
building the XZ decompressor. The link of the compressed image then
fails with the following error:

arch/mips/boot/compressed/decompress.o: In function '__fswab32':
include/uapi/linux/swab.h:60: undefined reference to '__bswapsi2'

Add bswapsi.o to the link to fix the build with these versions.

Signed-off-by: Alban Bedel <[email protected]>
Cc: Andrew Bresticker <[email protected]>
Cc: Alex Smith <[email protected]>
Cc: Wu Zhangjin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12232/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/boot/compressed/Makefile