rockchip: make_fit_atf/optee: add platform name

It's better to add platform name for the uboot.img.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I050981356d68ac1816ebd2cdc8c0cc69bfd841bd
This commit is contained in:
Joseph Chen 2020-12-15 21:11:01 +08:00 committed by Jianhong Chen
parent 33e46123fc
commit ed474e7a97
2 changed files with 4 additions and 2 deletions

View File

@ -172,6 +172,7 @@ function generate_mcu_node()
echo " };"
}
########################################################################################################
THIS_PLAT=`sed -n "/CONFIG_DEFAULT_DEVICE_TREE/p" .config | awk -F "=" '{ print $2 }' | tr -d '"'`
cat << EOF
/*
@ -212,7 +213,7 @@ cat << EOF
configurations {
default = "conf";
conf {
description = "Rockchip armv8 with ATF";
description = "${THIS_PLAT}";
rollback-index = <0x0>;
firmware = "atf-1";
loadables = "uboot"${LOADABLE_ATF}${LOADABLE_OPTEE};

View File

@ -80,6 +80,7 @@ if [ -f ${srctree}/dts/kern.dtb ]; then
};"
fi
########################################################################################################
THIS_PLAT=`sed -n "/CONFIG_DEFAULT_DEVICE_TREE/p" .config | awk -F "=" '{ print $2 }' | tr -d '"'`
cat << EOF
/*
@ -145,7 +146,7 @@ cat << EOF
configurations {
default = "conf";
conf {
description = "Rockchip armv7 with OP-TEE";
description = "${THIS_PLAT}";
rollback-index = <0x0>;
firmware = "optee";
loadables = "uboot";