diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-21 01:40:15 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-21 01:40:15 +0200 |
commit | 5a19e9a3dea68dbc03d979902cdabd5cb633964f (patch) | |
tree | fd9625ba8e14588378373bd9b38258a3fa470798 | |
parent | 2c9edfc069214f4c0aac6babd260e04ba518a8bf (diff) |
images: FIT: Support kernel image compression
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | images/FIT.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/images/FIT.sh b/images/FIT.sh index f56ccba..f42ff2b 100644 --- a/images/FIT.sh +++ b/images/FIT.sh @@ -1,8 +1,18 @@ # SPDX-License-Identifier: GPL-2.0+ make_FIT_image() { + local kernel_compression local kernel_its=$output_dir/arch/$arch/boot/kernel_fdt.its + case $image_kernel in + *.gz) + kernel_compression=gzip + ;; + *) + kernel_compression=none + ;; + esac + cat <<EOF > $kernel_its /dts-v1/; / { @@ -16,7 +26,7 @@ make_FIT_image() { type = "kernel"; arch = "$arch"; os = "linux"; - compression = "none"; + compression = "$kernel_compression"; load = <$loadaddr>; entry = <$loadaddr>; hash-1 { |