Skip to contentSkip to conversation

Brotli: fix build failed if the path includes "-static"

PATCH New Jamin Lin 3 participants 6 messages Nov 3, 2023 – Nov 6, 2023 Arm/Aspeed machine support

lore
Share & tools
lore

Jamin Lin

author
#0 lore raw

PATCH 1/1 Brotli: fix build failed if the path includes "-static"

It would like to remove "-static" in the name of statice library at the do_install task. For example: replace libbrotlicommon-static.a with ibbrotlicommon-static.a However, if the patch of
this statice library includes "-static", it would build failed. (ex: set my build directory "build-static")
Change to remove "-static" in the base name of static library to fix this build failed.

---
 meta-oe/recipes-extended/brotli/brotli_1.0.9.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/brotli/brotli_1.0.9.bb +2 -1
index 4e2813dde..6492b1943 100644
@@ -16,7 +16,8 @@ inherit cmake lib_package
 
 do_install:append () {
 	for lib in $(ls ${D}${libdir}/*-static.a); do
-		mv -v "${lib}" "$(echo ${lib} | sed s/-static//)"
+		basename=$(basename ${lib})
+		mv -v "${lib}" "${D}${libdir}$(echo ${basename} | sed s/-static//)"
 	done
 }
 
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 1/1 ast2600:emmc: unsigned rot image align block size (512bytes)

Change-Id I9b82f11cdf3e8524b99f8dfe6a102fedf2b87e5f
---
 .../recipes-aspeed/images/aspeed-image-gen-secureboot.bb  | 8 ++++++++
 .../recipes-aspeed/images/aspeed-image-emmcboot.bb        | 5 +++++
 2 files changed, 13 insertions(+)
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +8 -0
index 7a6ae1fa0b..f0d046ae58 100644
@@ -193,6 +193,12 @@ make_recovery_image() {
     python3 ${STAGING_BINDIR_NATIVE}/gen_uart_booting_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME} ${S}/${GEN_IMAGE_MODE}/recovery_${SPL_IMAGE_NAME}
 }
 
+make_emmc_unsigned_rot_image() {
+    if [ -f ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ]; then
+        python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ${S}/${GEN_IMAGE_MODE}/emmc_${SPL_IMAGE_NAME}.unsigned
+    fi
+}
+
 make_boot_partition_ext4() {
     # Generate a compressed ext4 filesystem with the fitImage file in it to be
     # flashed to the user data area at boot partition of the eMMC
@@ -617,6 +623,8 @@ python do_deploy() {
         bb.build.exec_func("make_recovery_image", d)
 
         if aspeed_boot_emmc == "yes":
+            print("Make emmc unsigned rot image")
+            bb.build.exec_func("make_emmc_unsigned_rot_image", d)
             print("Deploy mmc image...")
             deploy_mmc_image(d)
         else:
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +5 -0
index 4faf0d032c..9eb91e8b00 100644
@@ -61,6 +61,11 @@ do_mk_emmc_boot_image_g6() {
         install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${OUTPUT_IMAGE_DIR}
     else
         install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}
+        if [ -f ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ]; then
+            install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}
+            python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${SOURCE_IMAGE_DIR}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned
+            install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${OUTPUT_IMAGE_DIR}
+        fi
     fi
 }
 
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)

we do not have this recipe in mets-oe. Did you intend to send this patch ?

Quoted 62 lines · Jamin Lin via lists.openembedded.org
Change-Id I9b82f11cdf3e8524b99f8dfe6a102fedf2b87e5f
---
 .../recipes-aspeed/images/aspeed-image-gen-secureboot.bb  | 8 ++++++++
 .../recipes-aspeed/images/aspeed-image-emmcboot.bb        | 5 +++++
 2 files changed, 13 insertions(+)
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +8 -0
index 7a6ae1fa0b..f0d046ae58 100644
@@ -193,6 +193,12 @@ make_recovery_image() {
     python3 ${STAGING_BINDIR_NATIVE}/gen_uart_booting_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME} ${S}/${GEN_IMAGE_MODE}/recovery_${SPL_IMAGE_NAME}
 }
 
+make_emmc_unsigned_rot_image() {
+    if [ -f ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ]; then
+        python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ${S}/${GEN_IMAGE_MODE}/emmc_${SPL_IMAGE_NAME}.unsigned
+    fi
+}
+
 make_boot_partition_ext4() {
     # Generate a compressed ext4 filesystem with the fitImage file in it to be
     # flashed to the user data area at boot partition of the eMMC
@@ -617,6 +623,8 @@ python do_deploy() {
         bb.build.exec_func("make_recovery_image", d)
 
         if aspeed_boot_emmc == "yes":
+            print("Make emmc unsigned rot image")
+            bb.build.exec_func("make_emmc_unsigned_rot_image", d)
             print("Deploy mmc image...")
             deploy_mmc_image(d)
         else:
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +5 -1
index 4faf0d032c..9eb91e8b00 100644
@@ -61,6 +61,11 @@ do_mk_emmc_boot_image_g6() {
         install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${OUTPUT_IMAGE_DIR}
     else
         install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}
+        if [ -f ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ]; then
+            install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}
+            python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${SOURCE_IMAGE_DIR}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned
+            install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${OUTPUT_IMAGE_DIR}
+        fi
     fi
 }
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105853): https://lists.openembedded.org/g/openembedded-devel/message/105853
Mute This Topic: https://lists.openembedded.org/mt/102360863/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)

Quoted 2 lines · Khem Raj

we do not have this recipe in mets-oe. Did you intend to send this patch ?

My guess is you intended this for openbmc?

Quoted 94 lines

Review

Quoted 9 lines · Jamin Lin via lists.openembedded.org
Change-Id I9b82f11cdf3e8524b99f8dfe6a102fedf2b87e5f
---
 .../recipes-aspeed/images/aspeed-image-gen-secureboot.bb  | 8 ++++++++
 .../recipes-aspeed/images/aspeed-image-emmcboot.bb        | 5 +++++
 2 files changed, 13 insertions(+)
(quoted diff) +0 -0

aspeed-image-gen-secureboot.bb b/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/ aspeed-image-gen-secureboot.bb

Quoted 2 lines

index 7a6ae1fa0b..f0d046ae58 100644
--- a/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/

aspeed-image-gen-secureboot.bb

Quoted 1 line

+++ b/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/

aspeed-image-gen-secureboot.bb

Review make_recovery_image() { · line 193

Quoted 2 lines
(quoted diff) +0 -0
@@ -193,6 +193,12 @@ make_recovery_image() {
     python3 ${STAGING_BINDIR_NATIVE}/gen_uart_booting_image.py

${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}
${S}/${GEN_IMAGE_MODE}/recovery_${SPL_IMAGE_NAME}

meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb make_recovery_image() {

Quoted 5 lines
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +3 -0
 }
 
+make_emmc_unsigned_rot_image() {
+    if [ -f ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ]; then
+        python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py

${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ${S}/${GEN_IMAGE_MODE}/emmc_${SPL_IMAGE_NAME}.unsigned

meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb make_recovery_image() {

Quoted 5 lines
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +3 -0
+    fi
+}
+
 make_boot_partition_ext4() {
     # Generate a compressed ext4 filesystem with the fitImage file in

it to be

Review

Quoted 11 lines
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +2 -0
     # flashed to the user data area at boot partition of the eMMC
@@ -617,6 +623,8 @@ python do_deploy() {
         bb.build.exec_func("make_recovery_image", d)
 
         if aspeed_boot_emmc == "yes":
+            print("Make emmc unsigned rot image")
+            bb.build.exec_func("make_emmc_unsigned_rot_image", d)
             print("Deploy mmc image...")
             deploy_mmc_image(d)
         else:
(quoted diff) +0 -0

aspeed-image-emmcboot.bb b/meta-aspeed-sdk/recipes-aspeed/images/ aspeed-image-emmcboot.bb

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb do_mk_emmc_boot_image_g6() { · line 61

Quoted 5 lines

index 4faf0d032c..9eb91e8b00 100644

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +0 -0
@@ -61,6 +61,11 @@ do_mk_emmc_boot_image_g6() {
         install -m 0644

${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${OUTPUT_IMAGE_DIR}

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb do_mk_emmc_boot_image_g6() { · line 63

Quoted 2 lines
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +0 -0
     else
         install -m 0644

${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb do_mk_emmc_boot_image_g6() { · line 64

Quoted 1 line
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +1 -0
+        if [ -f

${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ]; then

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb do_mk_emmc_boot_image_g6() { · line 65

Quoted 1 line
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +1 -0
+            install -m 0644

${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb do_mk_emmc_boot_image_g6() { · line 66

Quoted 1 line
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +1 -0
+            python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py

${SOURCE_IMAGE_DIR}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb do_mk_emmc_boot_image_g6() { · line 67

Quoted 1 line
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +1 -0
+            install -m 0644

${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${OUTPUT_IMAGE_DIR}

Quoted 10 lines
meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +1 -1
+        fi
     fi
 }
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105871):
https://lists.openembedded.org/g/openembedded-devel/message/105871
Mute This Topic: https://lists.openembedded.org/mt/102360863/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#4 lore raw

RE: [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)

Yes, I want to send this patch to OpenBMC
Sorry for your inconvenient

From: Tim Orling <[email protected]>
Sent: Saturday, November 4, 2023 2:33 AM
To: Khem Raj <[email protected]>
Cc: Jamin Lin <[email protected]>; [email protected]
Subject: Re: [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)

On Fri, Nov 3, 2023 at 10:08 AM Khem Raj <mailto:[email protected]> wrote:
we do not have this recipe in mets-oe. Did you intend to send this patch ?

My guess  is you intended this for openbmc?

Quoted 50 lines · On Fri, Nov 3, 2023 at 3:03 AM Jamin Lin via http://lists.openembedded.org…
Change-Id I9b82f11cdf3e8524b99f8dfe6a102fedf2b87e5f

---
  .../recipes-aspeed/images/http://aspeed-image-gen-secureboot.bb  | 8 ++++++++ .../recipes-aspeed/images/http://aspeed-image-emmcboot.bb        | 5 +++++

  2 files changed, 13 insertions(+)
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/http://aspeed-image-gen-secureboot.bb +6 -0
index 7a6ae1fa0b..f0d046ae58 100644
@@ -193,6 +193,12 @@ make_recovery_image() {
       python3 ${STAGING_BINDIR_NATIVE}/gen_uart_booting_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME} ${S}/${GEN_IMAGE_MODE}/recovery_${SPL_IMAGE_NAME}
   }
 
+make_emmc_unsigned_rot_image() {
+    if [ -f ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ]; then
+        python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ${S}/${GEN_IMAGE_MODE}/emmc_${SPL_IMAGE_NAME}.unsigned
+    fi
+}
+
   make_boot_partition_ext4() {
       # Generate a compressed ext4 filesystem with the fitImage file in it to be
       # flashed to the user data area at boot partition of the eMMC
@@ -617,6 +623,8 @@ python do_deploy() {
           bb.build.exec_func("make_recovery_image", d)
 

          if aspeed_boot_emmc == "yes":
+            print("Make emmc unsigned rot image")
+            bb.build.exec_func("make_emmc_unsigned_rot_image", d) print("Deploy mmc image...") deploy_mmc_image(d)
          else:

meta-aspeed-sdk/recipes-aspeed/images/http://aspeed-image-emmcboot.bb +0 -0
index 4faf0d032c..9eb91e8b00 100644
@@ -61,6 +61,11 @@ do_mk_emmc_boot_image_g6() {
           install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${OUTPUT_IMAGE_DIR}

      else
          install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}
+        if [ -f ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ]; then
+            install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}
+            python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${SOURCE_IMAGE_DIR}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned +            install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${OUTPUT_IMAGE_DIR}
+        fi
      fi
  }

Quoted 6 lines

--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105871): https://lists.openembedded.org/g/openembedded-devel/message/105871
Mute This Topic: https://lists.openembedded.org/mt/102360863/924729
Group Owner: mailto:openembedded-devel%[email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [mailto:[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#5 lore raw

RE: [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)

In reply to Khem Raj

Yes, I sent the wrong place.
Please ignore it.
Sorry for your inconvenient.

From: Khem Raj <[email protected]>
Sent: Saturday, November 4, 2023 1:08 AM
To: Jamin Lin <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)

we do not have this recipe in mets-oe. Did you intend to send this patch ?

Quoted 78 lines · Jamin Lin via lists.openembedded.org
Change-Id I9b82f11cdf3e8524b99f8dfe6a102fedf2b87e5f
---
 .../recipes-aspeed/images/aspeed-image-gen-secureboot.bb  | 8 ++++++++
 .../recipes-aspeed/images/aspeed-image-emmcboot.bb        | 5 +++++
 2 files changed, 13 insertions(+)
(quoted diff) +0 -0

a/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image- gen-secureboot.bb b/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image- gen-secureboot.bb
index 7a6ae1fa0b..f0d046ae58 100644
---
a/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image- gen-secureboot.bb
+++ b/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-im +++ age-gen-secureboot.bb

meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +6 -0
@@ -193,6 +193,12 @@ make_recovery_image() {
     python3 ${STAGING_BINDIR_NATIVE}/gen_uart_booting_image.py 
 ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME} 
 ${S}/${GEN_IMAGE_MODE}/recovery_${SPL_IMAGE_NAME}
 }
 
+make_emmc_unsigned_rot_image() {
+    if [ -f ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ]; then
+        python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ${S}/${GEN_IMAGE_MODE}/emmc_${SPL_IMAGE_NAME}.unsigned
+    fi
+}
+
 make_boot_partition_ext4() {

# Generate a compressed ext4 filesystem with the fitImage file in it to be # flashed to the user data area at boot partition of the eMMC @@

-617,6 +623,8 @@ python do_deploy() {
         bb.build.exec_func("make_recovery_image", d)

         if aspeed_boot_emmc == "yes":
meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb +2 -0
+            print("Make emmc unsigned rot image")
+            bb.build.exec_func("make_emmc_unsigned_rot_image", d)
             print("Deploy mmc image...")
             deploy_mmc_image(d)
         else:
(quoted diff) +0 -0

a/meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb b/meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb index 4faf0d032c..9eb91e8b00 100644

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +0 -0
@@ -61,6 +61,11 @@ do_mk_emmc_boot_image_g6() {
         install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${OUTPUT_IMAGE_DIR}
     else
         install -m 0644 
 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} 

${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFI X}

meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb +5 -1
+        if [ -f ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ]; then
+            install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}
+            python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${SOURCE_IMAGE_DIR}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned
+            install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${OUTPUT_IMAGE_DIR}
+        fi
     fi
 }
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#105853):
https://lists.openembedded.org/g/openembedded-devel/message/105853
Mute This Topic: https://lists.openembedded.org/mt/102360863/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-