From patchwork Fri Feb 20 21:32:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1918 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=1771623181; bh=DjYoMkxy9LwvuwDx6nt5Zx6GXf0gXHu8KS1w49hlKWc=; 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=v0rqF3R+jwnhj/FhqaDLAfFRL/S2Oq7HnezG8YV1T/kz4kipQgyfb+IOulfpxjBQa 57qW8BnPwW9UEHBEBlSaUl4r0frfhppiq9cgAXQg9HH/ABX+Kv5c/2xUjbRjf5Z+Ym FLD/uUCIZDRIK54C9/Xw9+T18KDPQLdgBn31zVaJAoYj0V4IyTfQVetPHCJGmoGlgn kgzmBxJkdPCCrnkY/MRfiZXOu5KcVkvdSs2wrvT3C3Az5fgwluV+gVr5KJgZSeN7ex LLLm1nl2FY/rY93p4jdgeR4CdznLxEWDYTNyfvZLuLbafWF5VpjE0nqp3RlPChQaGL y3d1QBHHZYvxw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E4EFF69CC6 for ; Fri, 20 Feb 2026 14:33:01 -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 PRzYNasMBeF5 for ; Fri, 20 Feb 2026 14:33:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771623181; bh=DjYoMkxy9LwvuwDx6nt5Zx6GXf0gXHu8KS1w49hlKWc=; 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=v0rqF3R+jwnhj/FhqaDLAfFRL/S2Oq7HnezG8YV1T/kz4kipQgyfb+IOulfpxjBQa 57qW8BnPwW9UEHBEBlSaUl4r0frfhppiq9cgAXQg9HH/ABX+Kv5c/2xUjbRjf5Z+Ym FLD/uUCIZDRIK54C9/Xw9+T18KDPQLdgBn31zVaJAoYj0V4IyTfQVetPHCJGmoGlgn kgzmBxJkdPCCrnkY/MRfiZXOu5KcVkvdSs2wrvT3C3Az5fgwluV+gVr5KJgZSeN7ex LLLm1nl2FY/rY93p4jdgeR4CdznLxEWDYTNyfvZLuLbafWF5VpjE0nqp3RlPChQaGL y3d1QBHHZYvxw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D1D0A69CC8 for ; Fri, 20 Feb 2026 14:33:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771623179; bh=kiEf6US3D/L62+f2UlTwQ3PT1pMTwb7gjfzdU0Ekj3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vXs2UhpwGTCNAcJ2da6/1jdxTx0l4rg0+kqZm33j2QG3qbkEqwCLWO9/s3lba3LHs nEZjxRfOkGxDxzirhvHrWqqCPB6f2Gtds1I455VnA+JIyBgaFY5HKJ3g6jDbVUEEz+ e3yyy07vKlzx/QbUtm7Vxs4uDoYDYpFZAlvCNI+ff3atRPQ1//aYFz0gEK2I5t8+Od +Xt+Pr8JWuO/gogdDjF8TwevzbwYRGXBuHfso82BNHVVPUGubHE1oS7KJCg5sEvJSA cBHwPo4WP3crSvzL/H/6j6HlNQcXkARfY9OBCkofpD/alzJ51H6cbqNeLzCeJ8fCPF PkXGy2MCSYMoQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C20E769CC8; Fri, 20 Feb 2026 14:32:59 -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 9Eldz6YFmEhF; Fri, 20 Feb 2026 14:32:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771623175; bh=wyjXdNkxIev46wBhyqDAS8n3ouvc7DMMJEeYHErEtS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NtBgZij0AbRwG75ejznDN6kiNt97PbgzlyMTAisObIt0YScc5QxCcrsTyS9iYquXk 4UHX0Wef635ZNgMuGgx3tDRi5scoc6WaIluAZuhl6uwRAxB+TTw2RSQimvJt98TepF mHik+TE6rUI5g+rfxKK/4/QYCmPDCUCJ1X3hNa4LvdkIJErxxz1iT1GdVf5Z50vXsy +vYLIUPNH0UdCte7Us0NFR9AcGi9dJyiZVd4C9Gli20XB1kMhY8r9w/Qixc/WCFJRq JJ0sSZ6aUxL4NfVdA/XIjWyL90SxS89slxbaemK20ZNh+O02tvbQFrmR1ImQzIe2WJ ADXf8cY34+n7w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id AC25969CC6; Fri, 20 Feb 2026 14:32:54 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Fri, 20 Feb 2026 14:32:28 -0700 Message-ID: <20260220213235.2112347-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260220213235.2112347-1-sjg@u-boot.org> References: <20260220213235.2112347-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: FOPGOH6HK2VI6TDQTFJAJPO2XF7LXPSJ X-Message-ID-Hash: FOPGOH6HK2VI6TDQTFJAJPO2XF7LXPSJ 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: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 3/6] test: hooks: Add QEMU configs for EFI app boards 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 test hook configurations for the four EFI application boards so they can run under QEMU with UEFI firmware: - efi-x86_app32: OVMF 32-bit (OVMF32_CODE_4M.fd), qemu-system-i386 - efi-x86_app64: OVMF 64-bit (OVMF_CODE_4M.fd), qemu-system-x86_64 - efi-arm_app64: AAVMF (AAVMF_CODE.fd), qemu-system-aarch64 - efi-riscv_app64: EDK2 RISC-V (RISCV_VIRT_CODE.fd), qemu-system-riscv64 with blockdev-style pflash and virtio-blk All boards use the qemu.efi_app helper script to stage the EFI binary and UEFI firmware. Add ellesmere symlinks as well. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- test/hooks/bin/ellesmere/conf.efi-arm_app64_na | 1 + test/hooks/bin/ellesmere/conf.efi-riscv_app64_na | 1 + test/hooks/bin/ellesmere/conf.efi-x86_app32_na | 1 + test/hooks/bin/ellesmere/conf.efi-x86_app64_na | 1 + test/hooks/bin/travis-ci/conf.efi-arm_app64_na | 14 ++++++++++++++ test/hooks/bin/travis-ci/conf.efi-riscv_app64_na | 16 ++++++++++++++++ test/hooks/bin/travis-ci/conf.efi-x86_app32_na | 14 ++++++++++++++ test/hooks/bin/travis-ci/conf.efi-x86_app64_na | 14 ++++++++++++++ 8 files changed, 62 insertions(+) create mode 120000 test/hooks/bin/ellesmere/conf.efi-arm_app64_na create mode 120000 test/hooks/bin/ellesmere/conf.efi-riscv_app64_na create mode 120000 test/hooks/bin/ellesmere/conf.efi-x86_app32_na create mode 120000 test/hooks/bin/ellesmere/conf.efi-x86_app64_na create mode 100644 test/hooks/bin/travis-ci/conf.efi-arm_app64_na create mode 100644 test/hooks/bin/travis-ci/conf.efi-riscv_app64_na create mode 100644 test/hooks/bin/travis-ci/conf.efi-x86_app32_na create mode 100644 test/hooks/bin/travis-ci/conf.efi-x86_app64_na diff --git a/test/hooks/bin/ellesmere/conf.efi-arm_app64_na b/test/hooks/bin/ellesmere/conf.efi-arm_app64_na new file mode 120000 index 00000000000..8f4d76ce695 --- /dev/null +++ b/test/hooks/bin/ellesmere/conf.efi-arm_app64_na @@ -0,0 +1 @@ +../travis-ci/conf.efi-arm_app64_na \ No newline at end of file diff --git a/test/hooks/bin/ellesmere/conf.efi-riscv_app64_na b/test/hooks/bin/ellesmere/conf.efi-riscv_app64_na new file mode 120000 index 00000000000..5bf928b9bd9 --- /dev/null +++ b/test/hooks/bin/ellesmere/conf.efi-riscv_app64_na @@ -0,0 +1 @@ +../travis-ci/conf.efi-riscv_app64_na \ No newline at end of file diff --git a/test/hooks/bin/ellesmere/conf.efi-x86_app32_na b/test/hooks/bin/ellesmere/conf.efi-x86_app32_na new file mode 120000 index 00000000000..e5c78309c45 --- /dev/null +++ b/test/hooks/bin/ellesmere/conf.efi-x86_app32_na @@ -0,0 +1 @@ +../travis-ci/conf.efi-x86_app32_na \ No newline at end of file diff --git a/test/hooks/bin/ellesmere/conf.efi-x86_app64_na b/test/hooks/bin/ellesmere/conf.efi-x86_app64_na new file mode 120000 index 00000000000..a0edb3778c9 --- /dev/null +++ b/test/hooks/bin/ellesmere/conf.efi-x86_app64_na @@ -0,0 +1 @@ +../travis-ci/conf.efi-x86_app64_na \ No newline at end of file diff --git a/test/hooks/bin/travis-ci/conf.efi-arm_app64_na b/test/hooks/bin/travis-ci/conf.efi-arm_app64_na new file mode 100644 index 00000000000..aad3bae7290 --- /dev/null +++ b/test/hooks/bin/travis-ci/conf.efi-arm_app64_na @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: MIT +# Copyright 2026 Canonical Ltd. +# Written by Simon Glass + +console_impl=qemu +qemu_machine="virt" +qemu_binary="qemu-system-aarch64" +qemu_extra_args="-m 1G -nographic -no-reboot -nic none -cpu max" +qemu_kernel_args="" +qemu_helper_script="efi_app" +efi_fw_code="/usr/share/AAVMF/AAVMF_CODE.fd" +efi_fw_vars="/usr/share/AAVMF/AAVMF_VARS.fd" +reset_impl=none +flash_impl=none diff --git a/test/hooks/bin/travis-ci/conf.efi-riscv_app64_na b/test/hooks/bin/travis-ci/conf.efi-riscv_app64_na new file mode 100644 index 00000000000..8811c1f6ac9 --- /dev/null +++ b/test/hooks/bin/travis-ci/conf.efi-riscv_app64_na @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: MIT +# Copyright 2026 Canonical Ltd. +# Written by Simon Glass + +console_impl=qemu +qemu_machine="virt,pflash0=pflash0,pflash1=pflash1" +qemu_binary="qemu-system-riscv64" +qemu_extra_args="-m 1G -nographic -no-reboot -nic none" +qemu_kernel_args="" +qemu_helper_script="efi_app" +efi_fw_code="/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd" +efi_fw_vars="/usr/share/qemu-efi-riscv64/RISCV_VIRT_VARS.fd" +efi_use_blockdev=y +efi_virtio_blk=y +reset_impl=none +flash_impl=none diff --git a/test/hooks/bin/travis-ci/conf.efi-x86_app32_na b/test/hooks/bin/travis-ci/conf.efi-x86_app32_na new file mode 100644 index 00000000000..49269cb3993 --- /dev/null +++ b/test/hooks/bin/travis-ci/conf.efi-x86_app32_na @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: MIT +# Copyright 2026 Canonical Ltd. +# Written by Simon Glass + +console_impl=qemu +qemu_machine="pc" +qemu_binary="qemu-system-i386" +qemu_extra_args="-m 1G -nographic -no-reboot -nic none" +qemu_kernel_args="" +qemu_helper_script="efi_app" +efi_fw_code="/usr/share/OVMF/OVMF32_CODE_4M.fd" +efi_fw_vars="/usr/share/OVMF/OVMF32_VARS_4M.fd" +reset_impl=none +flash_impl=none diff --git a/test/hooks/bin/travis-ci/conf.efi-x86_app64_na b/test/hooks/bin/travis-ci/conf.efi-x86_app64_na new file mode 100644 index 00000000000..69a9dc20b41 --- /dev/null +++ b/test/hooks/bin/travis-ci/conf.efi-x86_app64_na @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: MIT +# Copyright 2026 Canonical Ltd. +# Written by Simon Glass + +console_impl=qemu +qemu_machine="q35" +qemu_binary="qemu-system-x86_64" +qemu_extra_args="-m 1G -nographic -no-reboot -nic none" +qemu_kernel_args="" +qemu_helper_script="efi_app" +efi_fw_code="/usr/share/OVMF/OVMF_CODE_4M.fd" +efi_fw_vars="/usr/share/OVMF/OVMF_VARS_4M.fd" +reset_impl=none +flash_impl=none