When UBOOT_SUFFIX is  set as "img", the u-boot.img is installed
<build-path>/image/boot, not the u-boot.bin, and there will be
build error as below:
Error:
 Problem: conflicting requests
  - nothing provides u-boot-xlnx-bin needed by
u-boot-xlnx-1:v2023.01+xilinx+v2023.1+git0+40a08d69e7-r0.xilinx_zynqmp
This issue is introduced by commit 43691092c359("u-boot-xlnx:
Split output packages between .bin and .elf") of meta-xilinx-core
layer. Because this commit only wants to split the .bin file into
u-boot-xlnx-bin package. After replacing .bin with UBOOT_SUFFIX,
the .bin or .img binary file will be spilt into u-boot-xlnx-bin package
dynamically.

Signed-off-by: Meng Li <[email protected]>
---
 meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc 
b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc
index 10dfbb60..83190b6f 100644
--- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc
+++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx.inc
@@ -43,8 +43,8 @@ PACKAGES =+ "${PN}-bin ${PN}-elf"
 RDEPENDS:${PN} = "${PN}-bin ${PN}-elf"
 ALLOW_EMPTY:${PN} = "1"
 
-SUMMARY:${PN}-bin = "${SUMMARY} - files in .bin format"
-FILES:${PN}-bin = "/boot/u-boot*.bin"
+SUMMARY:${PN}-bin = "${SUMMARY} - files in .bin or .img format"
+FILES:${PN}-bin = "/boot/u-boot*.${UBOOT_SUFFIX}"
 
 SUMMARY:${PN}-elf = "${SUMMARY} - files in .elf format"
 FILES:${PN}-elf = "/boot/u-boot*.elf"
-- 
2.40.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5248): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5248
Mute This Topic: https://lists.yoctoproject.org/mt/99382077/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to