qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Single-run script to build multi-platform QEMU distribution


From: Liviu Ionescu
Subject: [Qemu-devel] Single-run script to build multi-platform QEMU distribution packages, using Docker
Date: Mon, 18 May 2015 13:21:56 +0300

For those interested in creating setup/install packages for QEMU, I just 
updated the GNU ARM Eclipse QEMU build procedures to use Docker containers.

The current build-qemu.sh procedure includes a single run script, running on OS 
X and creating 5 files:

        gnuarmeclipse-qemu-debian32-2.3.50-201505121804-dev.tgz
        gnuarmeclipse-qemu-debian64-2.3.50-201505121804-dev.tgz
        gnuarmeclipse-qemu-osx-2.3.50-201505121804-dev.pkg
        gnuarmeclipse-qemu-win32-2.3.50-201505121804-dev-setup.exe
        gnuarmeclipse-qemu-win64-2.3.50-201505121804-dev-setup.exe

The same script also runs on GNU/Linux, just that it does not create the OS X 
package.

The Windows setup packages (32/64-bits) are built with MinGW-w64 running in a 
Debian 8 container. The GNU/Linux archives (32/64-bits) are built using 
separate 32/64-bits Debian 7 containers. The OS X package is built natively on 
OS X, using some MacPorts tools.

The Docker images used for the build are publicly available on the Docker Hub 
(https://registry.hub.docker.com/repos/ilegeul/), and the scripts used to 
create them are on GitHub (The Dockerfiles used to create these images are 
available from [GitHub](https://github.com/ilg-ul/docker).

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             
VIRTUAL SIZE
ilegeul/debian      8-gnuarm-mingw      b8261b27add4        3 minutes ago       
2.692 GB
ilegeul/debian      8-gnuarm-gcc        ba65c1716b6e        12 minutes ago      
1.437 GB
ilegeul/debian      7-gnuarm-gcc        16b30d6a4244        32 minutes ago      
1.6 GB
ilegeul/debian32    7-gnuarm-gcc        2e416e412fad        43 minutes ago      
1.596 GB
ilegeul/debian      7                   a4ad8e2c6d76        4 days ago          
96.13 MB
ilegeul/debian32    7                   64980af805ad        4 days ago          
93.65 MB
debian              8                   65688f7c61c4        6 weeks ago         
122.8 MB
hello-world         latest              e45a5af57b00        4 months ago        
910 B

The current build procedure is documented at:

        http://gnuarmeclipse.livius.net/wiki/How_to_build_QEMU

The script itself is available at:

        
https://sourceforge.net/p/gnuarmeclipse/se/ci/develop/tree/scripts/build-qemu.sh

Regards,

Liviu


p.s. For those not used with Docker (https://www.docker.com), it is a 
remarkable technology providing a lighter alternative to virtual machines; the 
concept is focused on modularity ("one container, one process") and sand-boxing 
(multiple read-only layers, that can be easily created and disposed). This 
provides, among other things, a controlled and reproducible environment, ideal 
for builds, especially multi-platform builds.

Highly recommended!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]