rockchip: make_fit_boot: add lz4 kernel support

Don't handle ramdisk.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id8c04a6d916a8fd4ae1f3154c75e597c3e6980bc
This commit is contained in:
Joseph Chen 2021-01-09 08:41:06 +00:00
parent fae486e407
commit d84179b5cb
1 changed files with 7 additions and 9 deletions

View File

@ -14,8 +14,10 @@ fi
if [ "${COMPRESSION}" == "gzip" ]; then if [ "${COMPRESSION}" == "gzip" ]; then
gzip -k -f -9 ${srctree}/images/kernel gzip -k -f -9 ${srctree}/images/kernel
gzip -k -f -9 ${srctree}/images/ramdisk
SUFFIX=".gz" SUFFIX=".gz"
elif [ "${COMPRESSION}" == "lz4" ]; then
lz4c -9 -f ${srctree}/images/kernel > ${srctree}/images/kernel.lz4
SUFFIX=".lz4"
else else
COMPRESSION="none" COMPRESSION="none"
SUFFIX= SUFFIX=
@ -48,10 +50,8 @@ cat << EOF
}; };
kernel { kernel {
EOF data = /incbin/("./images/kernel${SUFFIX}");
echo " data = /incbin/(\"./images/kernel${SUFFIX}\");" compression = "${COMPRESSION}";
echo " compression = \"${COMPRESSION}\";"
cat << EOF
type = "kernel"; type = "kernel";
arch = "${ARCH}"; arch = "${ARCH}";
os = "linux"; os = "linux";
@ -63,10 +63,8 @@ cat << EOF
}; };
ramdisk { ramdisk {
EOF data = /incbin/("./images/ramdisk");
echo " data = /incbin/(\"./images/ramdisk${SUFFIX}\");" compression = "none";
echo " compression = \"${COMPRESSION}\";"
cat << EOF
type = "ramdisk"; type = "ramdisk";
arch = "${ARCH}"; arch = "${ARCH}";
os = "linux"; os = "linux";