Add u-boot-rpi4 package to boot.img for u-boot boot
Change-Id: Iba486d729b5aa6c8a570db2b0854c922b5b909f6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
cp -a arch/arm/boot/zImage ./tmp
cp -a arch/arm/boot/dts/bcm*.dtb ./tmp
+# install u-boot files extracted from u-boot-rpi4 rpm package in download.tizen.org.
+TMP_UBOOT_PATH=tmp_uboot
+mkdir -p ${TMP_UBOOT_PATH}
+pushd ${TMP_UBOOT_PATH}
+REPO_URL=http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/armv7l/
+rm -f index.html*
+wget ${REPO_URL}
+UBOOT=`awk -F\" '{ print $2 }' index.html | grep u-boot-rpi4`
+wget ${REPO_URL}${UBOOT}
+unrpm ${UBOOT}
+
+# install u-boot.img having optee.bin extracted from atf-rpi4 rpm package in download.tizen.org.
+popd
+cp -a ${TMP_UBOOT_PATH}/boot/* ./tmp
+rm -rf ${TMP_UBOOT_PATH}
+
sync
sudo umount tmp