Skip to content

Commit

Permalink
Add QEMU package (#35761)
Browse files Browse the repository at this point in the history
This is useful for our melange QEMU builds

---------

Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 authored Dec 4, 2024
1 parent 879ac33 commit 280e6f3
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions qemu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
package:
name: qemu
version: 9.1.2
epoch: 1
description: "fast processor emulator"
copyright:
- license: GPL-2.0
dependencies:
runtime:
- glib

environment:
contents:
packages:
- bash
- bison
- build-base
- flex
- git
- glib
- glib-dev
- glib-static
- ncurses
- ncurses-dev
- ninja-build
- perl
- py3-packaging
- py3-pip
- py3-sphinx
- python3
- samurai
- wolfi-base
- zlib-dev
- zlib-static

pipeline:
- uses: git-checkout
with:
repository: https://github.com/qemu/qemu
expected-commit: 508081a49b0d624930ca479b8a27bccdc50bdfb2
tag: v${{package.version}}

- runs: |
mkdir build
cd build
../configure --enable-system --enable-slirp --target-list=x86_64-softmmu,aarch64-softmmu --prefix=${{targets.destdir}}/usr
make -j$(nproc)
make install
# Remove this firmware file, which we don't need, but requires so:dld.sl, which we don't have
rm -f ${{targets.destdir}}/usr/share/qemu/hppa-firmware64.img
# Can't use strip pipeline; there are some binaries that melange can't strip,
# causes a failed build, so here we do a lazy strip
find ${{targets.destdir}}/usr -type f -exec strip {} \; || true
test:
pipeline:
- runs: |
for i in /usr/bin/qemu-system-*; do
$i --help 2>/dev/null && echo "$i --> OKAY" || echo "$i --> FAIL"
$i --version 2>/dev/null && echo "$i --> OKAY" || echo "$i --> FAIL"
done
qemu-edid version
qemu-edid help
qemu-ga --version
qemu-ga --help
qemu-img --version
qemu-img --help
qemu-io --version
qemu-io --help
qemu-nbd --version
qemu-nbd --help
qemu-pr-helper --version
qemu-pr-helper --help
qemu-storage-daemon --version
qemu-storage-daemon --help
qemu-system-aarch64 --version
qemu-system-aarch64 --help
qemu-system-x86_64 --version
qemu-system-x86_64 --help
update:
enabled: true
github:
identifier: qemu/qemu
use-tag: true
strip-prefix: v
tag-filter: v

0 comments on commit 280e6f3

Please sign in to comment.