hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/deflate_xip_data.sh
....@@ -1,13 +1,11 @@
11 #!/bin/sh
2
+# SPDX-License-Identifier: GPL-2.0-only
23
34 # XIP kernel .data segment compressor
45 #
56 # Created by: Nicolas Pitre, August 2017
67 # Copyright: (C) 2017 Linaro Limited
78 #
8
-# This program is free software; you can redistribute it and/or modify
9
-# it under the terms of the GNU General Public License version 2 as
10
-# published by the Free Software Foundation.
119
1210 # This script locates the start of the .data section in xipImage and
1311 # substitutes it with a compressed version. The needed offsets are obtained
....@@ -58,7 +56,7 @@
5856 # substitute the data section by a compressed version
5957 $DD if="$XIPIMAGE" count=$data_start iflag=count_bytes of="$XIPIMAGE.tmp"
6058 $DD if="$XIPIMAGE" skip=$data_start iflag=skip_bytes |
61
-gzip -9 >> "$XIPIMAGE.tmp"
59
+$KGZIP -9 >> "$XIPIMAGE.tmp"
6260
6361 # replace kernel binary
6462 mv -f "$XIPIMAGE.tmp" "$XIPIMAGE"