Skip to content

Commit d28673e

Browse files
committed
meta-zephyr-sdk: qemu: Use Zephyr SeaBIOS fork binaries
The original change making QEMU use Zephyr SeaBIOS fork, 1bf6f4a, was dropped by mistake during the upgrade to QEMU 10.0.2. This commit updates the QEMU recipe to use the pre-built x86 BIOS binaries from the Zephyr SeaBIOS fork. The Zephyr SeaBIOS fork contains a few additional patches to make debugging more convenient for x86 QEMU targets (e.g. not clearing screen on reset). Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent 440cebb commit d28673e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

meta-zephyr-sdk/recipes-devtools/qemu/qemu-zephyr_git.bb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
3939

4040
SRCREV = "fe132ed0c9ae14a56bbf94b1d0d16b029b671c62"
4141
SRC_URI = "gitsm://github.com/zephyrproject-rtos/qemu.git;protocol=https;nobranch=1 \
42+
https://github.com/zephyrproject-rtos/seabios/releases/download/zephyr-v1.16.3-2/bios-128k.bin;name=bios-128k \
43+
https://github.com/zephyrproject-rtos/seabios/releases/download/zephyr-v1.16.3-2/bios-256k.bin;name=bios-256k \
4244
file://powerpc_rom.bin \
4345
file://run-ptest \
4446
file://qemu-guest-agent.init \
4547
file://qemu-guest-agent.udev \
4648
"
4749

50+
SRC_URI[bios-128k.sha256sum] = "961fa79b3c9de10ae798c8e43290081ee3e0547b410d4d603e7195f1319a3a33"
51+
SRC_URI[bios-256k.sha256sum] = "383fc5eeb532536d12a2c70b4d20f0ac8a01fb06f77f310b7f31764efc8b70e4"
52+
4853
S = "${WORKDIR}/git"
4954

5055
CVE_STATUS[CVE-2007-0998] = "not-applicable-config: The VNC server can expose host files uder some circumstances. We don't enable it by default."
@@ -66,6 +71,15 @@ COMPATIBLE_HOST:riscv32 = "null"
6671
# upstream states qemu doesn't work without optimization
6772
DEBUG_BUILD = "0"
6873

74+
copy_seabios() {
75+
cp ${WORKDIR}/bios-128k.bin ${S}/pc-bios/bios.bin
76+
cp ${WORKDIR}/bios-256k.bin ${S}/pc-bios/bios-256k.bin
77+
}
78+
79+
do_unpack:append() {
80+
bb.build.exec_func('copy_seabios', d)
81+
}
82+
6983
do_install:append() {
7084
# Prevent QA warnings about installed ${localstatedir}/run
7185
if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi

0 commit comments

Comments
 (0)