[Concept,11/13] x86: ulib: Add demo.rom and enable examples for qemu-x86
Commit Message
From: Simon Glass <simon.glass@canonical.com>
Add a demo-rom binman entry that reuses the rom_common template and
packages the demo example binary alongside the device tree and fdtmap,
producing a demo.rom that can be run on qemu-x86.
Enable CONFIG_EXAMPLES in qemu-x86_defconfig so the demo is built by
default.
Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
arch/x86/dts/u-boot.dtsi | 18 ++++++++++++++++++
configs/qemu-x86_defconfig | 1 +
2 files changed, 19 insertions(+)
@@ -195,4 +195,22 @@
};
#endif
};
+
+#ifdef CONFIG_EXAMPLES
+/ { binman {
+ demo-rom {
+ filename = "demo.rom";
+ insert-template = <&rom_common>;
+
+ blob {
+ filename = "examples/ulib/demo-nodtb.bin";
+ offset = <CONFIG_X86_OFFSET_U_BOOT>;
+ };
+ u-boot-dtb {
+ };
+ fdtmap {
+ };
+ };
+}; };
+#endif
#endif
@@ -14,6 +14,7 @@ CONFIG_SMP=y
CONFIG_GENERATE_PIRQ_TABLE=y
CONFIG_GENERATE_MP_TABLE=y
CONFIG_ULIB=y
+CONFIG_EXAMPLES=y
CONFIG_FIT=y
CONFIG_BOOTSTD_FULL=y
CONFIG_BOOTSTAGE=y