From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 02:45:28 +0000
Subject: [PATCH] add boot partition size
---
kernel/scripts/xz_wrap.sh | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/kernel/scripts/xz_wrap.sh b/kernel/scripts/xz_wrap.sh
index 7a2d372..3824fdf 100755
--- a/kernel/scripts/xz_wrap.sh
+++ b/kernel/scripts/xz_wrap.sh
@@ -9,6 +9,8 @@
# You can do whatever you want with this file.
#
+. include/config/auto.conf
+
BCJ=
LZMA2OPTS=
@@ -20,4 +22,8 @@
sparc) BCJ=--sparc ;;
esac
-exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB
+if [ -n "${CONFIG_THUMB2_KERNEL}" ]; then
+ BCJ=--armthumb
+fi
+
+exec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB
--
Gitblit v1.6.2