Skip to contentSkip to conversation

[PATCH 0/1]

PATCH New [email protected] 1 participant 2 messages Feb 6, 2024

lore
Share & tools
lore
#0 lore raw

cover [PATCH 0/1]

From: Emekcan Aras <[email protected]>

The capsule_cert and capsule_key file generated by u-boot for corstone1000 do not get deployed correctly since writingh the output directly to ${DEPLOY_DIR_IMAGE} causes the sstate mechanism to malfunction especially in the CI builds. This patch fixes the issue and deploy the generated files correctly.

Emekcan Aras (1):
arm-bsp/u-boot:corstone1000: Fix deployment of capsule files

 .../recipes-bsp/u-boot/u-boot-corstone1000.inc        | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 arm-bsp/u-boot:corstone1000: Fix deployment of capsule files

From: Ali Can Ozaslan <[email protected]>

The capsule_cert and capsule_key file generated by u-boot for corstone1000 do not get deployed correctly since writingh the output directly to ${DEPLOY_DIR_IMAGE} causes the sstate mechanism to malfunction especially in the CI builds. This patch fixes the issue and deploy the generated files correctly.

---
 .../recipes-bsp/u-boot/u-boot-corstone1000.inc        | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
meta-arm-bsp/recipes-bsp/u-boot/u-boot-corstone1000.inc +9 -2
index b6b7a04f..cf0640a3 100644
@@ -57,7 +57,14 @@ do_configure:append(){
     cert-to-efi-sig-list ${B}/CRT.crt ${B}/corstone1000_defconfig/CRT.esl
 }
 
+FILES:${PN} += "/corstone1000_capsule_*"
 do_install:append() {
-   install -D -p -m 0644 ${B}/CRT.crt ${DEPLOY_DIR_IMAGE}/corstone1000_capsule_cert.crt
-   install -D -p -m 0644 ${B}/CRT.key ${DEPLOY_DIR_IMAGE}/corstone1000_capsule_key.key
+   install -D -p -m 0644 ${B}/CRT.crt ${D}/corstone1000_capsule_cert.crt
+   install -D -p -m 0644 ${B}/CRT.key ${D}/corstone1000_capsule_key.key
 }
+
+do_deploy:append(){
+   cp -Rf ${D}/corstone1000_capsule* ${DEPLOYDIR}/
+}
+
+addtask deploy after do_install
Signature · 1 line
2.25.1