rockchip: make_fit_atf/optee.sh: add "kernel-fdt" node

kernel FDT is for U-Boot if there is not valid one from images,
ie: resource.img, boot.img or recovery.img. It is put right
after U-Boot FDT.

This is used for U-disk bing up.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iab1ddbbf3978a6b2fc08316bb136c43c0d2eef60
This commit is contained in:
Joseph Chen 2020-11-12 09:03:34 +00:00 committed by Jianhong Chen
parent 20647277f1
commit a14492767c
2 changed files with 31 additions and 0 deletions

View File

@ -47,6 +47,22 @@ function generate_uboot_node()
echo " };"
}
function generate_kfdt_node()
{
if [ -f ${srctree}/dts/kern.dtb ]; then
echo " kernel-fdt {
description = \"Kernel dtb\";
data = /incbin/(\"./dts/kern.dtb\");
type = \"flat_dt\";
arch = \"${ARCH}\";
compression = \"none\";
hash {
algo = \"sha256\";
};
};"
fi
}
function generate_bl31_node()
{
NUM=1
@ -147,6 +163,7 @@ EOF
generate_uboot_node
generate_bl31_node
generate_bl32_node
generate_kfdt_node
cat << EOF
fdt {

View File

@ -66,6 +66,19 @@ ${MCU_DIGEST}
else
SIGN_IMAGES=" sign-images = \"fdt\", \"firmware\", \"loadables\";"
fi
if [ -f ${srctree}/dts/kern.dtb ]; then
KFDT_NODE=" kernel-fdt {
description = \"Kernel dtb\";
data = /incbin/(\"./dts/kern.dtb\");
type = \"flat_dt\";
arch = \"${ARCH}\";
compression = \"none\";
hash {
algo = \"sha256\";
};
};"
fi
########################################################################################################
cat << EOF
@ -124,6 +137,7 @@ cat << EOF
};
};
EOF
echo "${KFDT_NODE}"
echo "${MCU_NODE}"
cat << EOF
};