From patchwork Sat Feb 14 02:13:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1871 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035260; bh=HwYR8Nh2gElFwb035cgWjSnp98R2WglBSPzfC7p+Qyw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=T9m5A7hTqTCAiTkjxKUy04/8yeQZCkjBUmt5NfbmzOLpXQaOq5C1PpXd6/RPkTW6+ z4virAihracFjjKIhjvsgtzLEnUL+dLMel2pl9h8eTJLfOtQV8eKCECAhYMVx3a3dD lxTiwmIHNIF8Dswd5azN7rpz5NkwTxeAI0hI19zQjtITuh2x7qi1qGtT5sdjh8uv3d a2mL+S7MhciUgzwoboIcU+QHrr+WhPqF/DApqeIagxLFQ9izAeWxAy1lsyzZMTcaZs TEVuzpdUJbjpy9NTaxNPcP1HikjFR/Th2YWGFNe7p8sUCzLKYcMcwL0VjpfrCl8G7c WYg04QxebC+/w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 46DBE69B5B for ; Fri, 13 Feb 2026 19:14:20 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1emo3uaXWJC2 for ; Fri, 13 Feb 2026 19:14:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035260; bh=HwYR8Nh2gElFwb035cgWjSnp98R2WglBSPzfC7p+Qyw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=T9m5A7hTqTCAiTkjxKUy04/8yeQZCkjBUmt5NfbmzOLpXQaOq5C1PpXd6/RPkTW6+ z4virAihracFjjKIhjvsgtzLEnUL+dLMel2pl9h8eTJLfOtQV8eKCECAhYMVx3a3dD lxTiwmIHNIF8Dswd5azN7rpz5NkwTxeAI0hI19zQjtITuh2x7qi1qGtT5sdjh8uv3d a2mL+S7MhciUgzwoboIcU+QHrr+WhPqF/DApqeIagxLFQ9izAeWxAy1lsyzZMTcaZs TEVuzpdUJbjpy9NTaxNPcP1HikjFR/Th2YWGFNe7p8sUCzLKYcMcwL0VjpfrCl8G7c WYg04QxebC+/w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3543C69B58 for ; Fri, 13 Feb 2026 19:14:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035258; bh=O9hMFu0Qy/d856RZN6PfvxFJ0h7UGUL43PHaPPI4m9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZjqdhjEdeUqw5GYUD2/1Q3n2mBJWVtvb8FJoUlP61Agmg5QgdekxhPj5eSC5vqPJr PI5oAFOK6fGu2Sg9ScEtIT4fpVBhtSyOD3jFr99L6ChIvbT/vTJH+JP9vD4QuPJT5d xMTBxGE3vW8QCPOuVa9QUe+IRx3jQXLp8Qq66MdqOtUpKpVfKtNHpQjHSkz/hH30Ca q57nqlmagkPZUHgexWNebuuZpy2zOZulbDqGG0dO6jbNFlRifk41fPydHJk4xFDTWy vOkpxsDzCJkU4RLBbn8PFROxaTETGz0ZjQ4sA4QQs3201PaxHranq/7XSwk6fCmgD5 n0G+EKdlt2iJw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CCE7B69A69; Fri, 13 Feb 2026 19:14:18 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id bTJJAmEhRQTV; Fri, 13 Feb 2026 19:14:18 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771035254; bh=4JGx93i+tnfH3SwHguG8JCrY9plIyIzARmCJhtgyPVw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cFkerxewAW/E+Kzg5J4xhWQaw2nra59zZTnloJubppv8qZHJZXppB4Um2q0IiEVMW 5i+7s/Sv7Ma2QvlRS7a66hmIvI1EcncQh72n/USd2fQjl2QzSGLCEFabGAoHKoEJ5a 1xMQLxwABfjHEkQKi8qUQGl9Y9/BIAxB1FxE1Fz0n6/bf3Jp41KbN6BVSoMGnrMTl/ oG0kADhNH9aRzZv/eaQ53iAN6KmQKdFfF5FRJomlsh66Vs2I21Q/P0H9HYbeZf2chz H722t7+aEkePlkHbmYevwSDFlp/5v0+Il6e1C+T65AUm03N/J0YCeahDka3IRHWdTF q+g/DpoE7/Nnw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2D3E769B5C; Fri, 13 Feb 2026 19:14:14 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Fri, 13 Feb 2026 19:13:05 -0700 Message-ID: <20260214021317.816170-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260214021317.816170-1-sjg@u-boot.org> References: <20260214021317.816170-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: PRY6XOB7VOGZCJHCYZN55KLNVV4MUMXO X-Message-ID-Hash: PRY6XOB7VOGZCJHCYZN55KLNVV4MUMXO X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/13] x86: ulib: Add demo.rom and enable examples for qemu-x86 List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass 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 Signed-off-by: Simon Glass --- arch/x86/dts/u-boot.dtsi | 18 ++++++++++++++++++ configs/qemu-x86_defconfig | 1 + 2 files changed, 19 insertions(+) diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi index 630f85db31a..69925c49c49 100644 --- a/arch/x86/dts/u-boot.dtsi +++ b/arch/x86/dts/u-boot.dtsi @@ -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 = ; + }; + u-boot-dtb { + }; + fdtmap { + }; + }; +}; }; +#endif #endif diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig index 30b69908988..2275ff9de1a 100644 --- a/configs/qemu-x86_defconfig +++ b/configs/qemu-x86_defconfig @@ -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