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:
parent
fae486e407
commit
d84179b5cb
|
|
@ -14,8 +14,10 @@ fi
|
|||
|
||||
if [ "${COMPRESSION}" == "gzip" ]; then
|
||||
gzip -k -f -9 ${srctree}/images/kernel
|
||||
gzip -k -f -9 ${srctree}/images/ramdisk
|
||||
SUFFIX=".gz"
|
||||
elif [ "${COMPRESSION}" == "lz4" ]; then
|
||||
lz4c -9 -f ${srctree}/images/kernel > ${srctree}/images/kernel.lz4
|
||||
SUFFIX=".lz4"
|
||||
else
|
||||
COMPRESSION="none"
|
||||
SUFFIX=
|
||||
|
|
@ -48,10 +50,8 @@ cat << EOF
|
|||
};
|
||||
|
||||
kernel {
|
||||
EOF
|
||||
echo " data = /incbin/(\"./images/kernel${SUFFIX}\");"
|
||||
echo " compression = \"${COMPRESSION}\";"
|
||||
cat << EOF
|
||||
data = /incbin/("./images/kernel${SUFFIX}");
|
||||
compression = "${COMPRESSION}";
|
||||
type = "kernel";
|
||||
arch = "${ARCH}";
|
||||
os = "linux";
|
||||
|
|
@ -63,10 +63,8 @@ cat << EOF
|
|||
};
|
||||
|
||||
ramdisk {
|
||||
EOF
|
||||
echo " data = /incbin/(\"./images/ramdisk${SUFFIX}\");"
|
||||
echo " compression = \"${COMPRESSION}\";"
|
||||
cat << EOF
|
||||
data = /incbin/("./images/ramdisk");
|
||||
compression = "none";
|
||||
type = "ramdisk";
|
||||
arch = "${ARCH}";
|
||||
os = "linux";
|
||||
|
|
|
|||
Loading…
Reference in New Issue