diff --git a/target/linux/generic/patches-3.2/006-arm_kernel_xz_support.patch b/target/linux/generic/patches-3.2/006-arm_kernel_xz_support.patch index 42ef57cfee6..ac3aae94e31 100644 --- a/target/linux/generic/patches-3.2/006-arm_kernel_xz_support.patch +++ b/target/linux/generic/patches-3.2/006-arm_kernel_xz_support.patch @@ -62,11 +62,13 @@ Signed-off-by: Imre Kaloz @$(check_for_bad_syms) --- a/arch/arm/boot/compressed/decompress.c +++ b/arch/arm/boot/compressed/decompress.c -@@ -44,6 +44,10 @@ extern void error(char *); +@@ -44,6 +44,12 @@ extern void error(char *); #include "../../../../lib/decompress_unlzma.c" #endif +#ifdef CONFIG_KERNEL_XZ ++#define memmove memmove ++#define memcpy memcpy +#include "../../../../lib/decompress_unxz.c" +#endif +