]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: zboot: Fix the build with XZ compression on older GCC versions
authorAlban Bedel <albeu@free.fr>
Tue, 26 Jan 2016 08:38:27 +0000 (09:38 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 7 Mar 2016 10:49:53 +0000 (11:49 +0100)
commit61cfbbc19f5eb48d35b888a069a0c54912ed92cf
treec181c68db2ef4825eb2f6a31d656801bf9b4f0c7
parentb2a7f4d8e28cbc84f978c92cc6ce2f3fac14697b
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 <albeu@free.fr>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Alex Smith <alex.smith@imgtec.com>
Cc: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12232/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/boot/compressed/Makefile