-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is useful for our melange QEMU builds --------- Signed-off-by: Luca Di Maio <[email protected]>
- Loading branch information
Showing
1 changed file
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |