Skip to contentSkip to conversation

rkbin:rk3308: pre-cleanup

PATCH New Trevor Woerner 1 participant 1 message Nov 3, 2023 Arm Rockchip

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rkbin:rk3308: pre-cleanup

Since 2 recipes can provide the same rk3308-specific blobs, switching between them can potentially cause: "... is trying to install files into a shared area when those files already exist" errors. Perform a pre-cleanup in both recipes so they don't step on each others' toes.

---
 recipes-bsp/rkbin/rk3308-rkbin_git.bb   | 5 +++++
 recipes-bsp/rkbin/rockchip-rkbin_git.bb | 5 +++++
 2 files changed, 10 insertions(+)
recipes-bsp/rkbin/rk3308-rkbin_git.bb +5 -0
index c6b05b242738..65ee136eff7c 100644
@@ -26,6 +26,11 @@ PACKAGES = "${PN}"
 ALLOW_EMPTY:${PN} = "1"
 
 do_deploy:rk3308() {
+	# cleanup first
+	rm -f ${DEPLOY_DIR_IMAGE}/bl31-rk3308.elf
+	rm -f ${DEPLOY_DIR_IMAGE}/tee-rk3308.bin
+	rm -f ${DEPLOY_DIR_IMAGE}/ddr-rk3308.bin
+
 	# Prebuilt TF-A
 	install -m 644 ${S}/bin/rk33/rk3308_bl31_v*.elf ${DEPLOYDIR}/bl31-rk3308.elf
 	# Prebuilt OPTEE-OS
recipes-bsp/rkbin/rockchip-rkbin_git.bb +5 -0
index f1609c7a4957..3f842d669c76 100644
@@ -27,6 +27,11 @@ PACKAGES = "${PN}"
 ALLOW_EMPTY:${PN} = "1"
 
 do_deploy:rk3308() {
+	# cleanup first
+	rm -f ${DEPLOY_DIR_IMAGE}/bl31-rk3308.elf
+	rm -f ${DEPLOY_DIR_IMAGE}/tee-rk3308.bin
+	rm -f ${DEPLOY_DIR_IMAGE}/ddr-rk3308.bin
+
 	# Prebuilt TF-A
 	install -m 644 ${S}/bin/rk33/rk3308_bl31_v*.elf ${DEPLOYDIR}/bl31-rk3308.elf
 	# Prebuilt OPTEE-OS
Signature · 1 line
2.41.0.327.gaa9166bcc0ba