diff mbox series

[v9,07/10] sandbox: binman: Add support for generating multiple images

Message ID 20230812055725.252424-8-sughosh.ganu@linaro.org
State Superseded
Headers show
Series Enable EFI capsule generation through binman | expand

Commit Message

Sughosh Ganu Aug. 12, 2023, 5:57 a.m. UTC
Add support for all sandbox variants to support generating multiple
images. This also requires tweaking the binman node of the sandbox_vpl
variant to work with the multiple-images property.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes since V8:
* New patch based on suggestions from Simon Glass.
* Move the 'multiple-images' property to top level dts files.
* Get sandbox_vpl's binman node to generate an image, with the above
  change.

 arch/sandbox/dts/sandbox.dts      | 1 +
 arch/sandbox/dts/sandbox_vpl.dtsi | 5 +++++
 arch/sandbox/dts/test.dts         | 1 +
 3 files changed, 7 insertions(+)

Comments

Simon Glass Aug. 12, 2023, 2:24 p.m. UTC | #1
On Fri, 11 Aug 2023 at 23:58, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
>
> Add support for all sandbox variants to support generating multiple
> images. This also requires tweaking the binman node of the sandbox_vpl
> variant to work with the multiple-images property.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> Changes since V8:
> * New patch based on suggestions from Simon Glass.
> * Move the 'multiple-images' property to top level dts files.
> * Get sandbox_vpl's binman node to generate an image, with the above
>   change.
>
>  arch/sandbox/dts/sandbox.dts      | 1 +
>  arch/sandbox/dts/sandbox_vpl.dtsi | 5 +++++
>  arch/sandbox/dts/test.dts         | 1 +
>  3 files changed, 7 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index 12d3eff5fa..1039b029f4 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -22,6 +22,7 @@ 
 	};
 
 	binman: binman {
+		multiple-images;
 	};
 
 	memory {
diff --git a/arch/sandbox/dts/sandbox_vpl.dtsi b/arch/sandbox/dts/sandbox_vpl.dtsi
index c7dc00a8d2..83e7657d5d 100644
--- a/arch/sandbox/dts/sandbox_vpl.dtsi
+++ b/arch/sandbox/dts/sandbox_vpl.dtsi
@@ -4,6 +4,11 @@ 
  */
 
 &binman {
+	image: image {
+	};
+};
+
+&image {
 	u-boot-tpl-elf {
 		no-expanded;
 	};
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index f351d5cb84..9b731a29cf 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -67,6 +67,7 @@ 
 	};
 
 	binman: binman {
+		multiple-images;
 	};
 
 	config {