summaryrefslogtreecommitdiffstats
path: root/lib/decompress_unxz.c
diff options
context:
space:
mode:
authorJules Maselbas <jmaselbas@zdiv.net>2023-09-07 17:20:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-09-08 15:19:53 +0200
commitf73d9b66c0ea15f6181cd1de59a92ce29733a2cc (patch)
tree702ee96c6d82c2d6002f6247ce5e275d50598814 /lib/decompress_unxz.c
parent34b36519d7535d9de34ad09facd82ddc2140b3fc (diff)
downloadbarebox-f73d9b66c0ea15f6181cd1de59a92ce29733a2cc.tar.gz
barebox-f73d9b66c0ea15f6181cd1de59a92ce29733a2cc.tar.xz
decompressors: Update xz to include ARM64 BCJ decoder
Update lib/xz/xz_dec_bcj.c and lib/xz/xz_private.h files from xz-embedded [1], which include spelling fixes and the new ARM64 BCJ decoder which was recently introduced into .xz file format version 1.1.0 (2022-12-11) [2]. [1] https://git.tukaani.org/?p=xz-embedded.git [2] https://tukaani.org/xz/xz-file-format-1.1.0.txt Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net> Link: https://lore.barebox.org/20230907152047.102747-1-jmaselbas@zdiv.net Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/decompress_unxz.c')
-rw-r--r--lib/decompress_unxz.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/decompress_unxz.c b/lib/decompress_unxz.c
index a7e2d331ab..132ab4a239 100644
--- a/lib/decompress_unxz.c
+++ b/lib/decompress_unxz.c
@@ -131,7 +131,11 @@
# define XZ_DEC_POWERPC
#endif
#ifdef CONFIG_ARM
-# define XZ_DEC_ARM
+# ifdef CONFIG_CPU_64
+# define XZ_DEC_ARM64
+# else
+# define XZ_DEC_ARM
+# endif
#endif
#ifdef CONFIG_IA64
# define XZ_DEC_IA64