From 00039d7059faa3489e91ddb692b703aedb8f9b13 Mon Sep 17 00:00:00 2001 From: Neal Frager Date: Sat, 25 Jan 2025 22:49:25 +0000 Subject: [PATCH] boot/uboot: support binman generated u-boot.itb When using binman to generate u-boot images, there will no longer be a make rule for generating files produced by binman. However, these files will still need to be installed to the output/images directory. One such file is the u-boot.itb. If the u-boot.itb is generated by binman, then the file still needs to be copied, but without the make rule. Here is an example of how binman generates the u-boot.itb: https://source.denx.de/u-boot/u-boot/-/commit/a4c98119109a60b9b236996f47065aa8fc0de9ca [Tested on Kria KV260 starter kit] Tested-by: Luca Ceresoli Reviewed-by: Luca Ceresoli Signed-off-by: Neal Frager Signed-off-by: Peter Korsgaard --- boot/uboot/uboot.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index cb745413e4..efecf2ca47 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -103,8 +103,10 @@ endif ifeq ($(BR2_TARGET_UBOOT_FORMAT_ITB),y) UBOOT_BINS += u-boot.itb +ifneq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) UBOOT_MAKE_TARGET += u-boot.itb endif +endif ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMX),y) UBOOT_BINS += u-boot.imx