No description
Find a file
2023-09-30 21:43:48 -04:00
command build qemu-system 2023-09-30 21:43:48 -04:00
patch fix regression: zero-init msghdr 2021-09-23 14:06:53 -04:00
.dockerignore bump: qemu 5.0.0-z1 2020-05-02 02:19:55 -04:00
Dockerfile build qemu-system 2023-09-30 21:43:48 -04:00
LICENSE init 2020-04-11 08:10:08 -04:00
README.md bump 2023-09-27 03:04:11 -04:00

qemu-static

The purpose of this project is to build a highly compatible QEMU binary package for linux to use with Zig testing.

Zig needs a very recent QEMU version, sometimes unreleased commit-revs, and sometimes with custom patches. For this reason, distro-based QEMU packages are unsuitable.

The overall strategy is to use Alpine Linux to host a QEMU build and link statically to all possible libraries.

It is a non-goal to build QEMU with all features enabled. It is a non-goal to build older versions of QEMU.

build docker image

docker build --tag qemu .

run container, save ID, copy artifact(s)

mkdir artifact
docker run -it --cidfile=qemu.cid qemu true
docker cp "$(cat qemu.cid):work/artifact/." artifact/.

review final artifact(s)

ls -al artifact/

cleanup container, ID-file, and image

docker container rm $(cat qemu.cid)
rm qemu.cid
docker image rm qemu

really, really cleanup docker

docker system prune --force