Merge remote-tracking branch 'jtc/tags/block-pull-request' into staging
[qemu/ar7.git] / tests / docker / test-mingw
blob2adadcb58dc76866709c6cece0880236ad2d9f9b
1 #!/bin/bash -e
3 # Cross compile QEMU with mingw toolchain on Linux.
5 # Copyright (c) 2016 Red Hat Inc.
7 # Authors:
8 # Fam Zheng <famz@redhat.com>
10 # This work is licensed under the terms of the GNU GPL, version 2
11 # or (at your option) any later version. See the COPYING file in
12 # the top-level directory.
14 . common.rc
16 requires mingw dtc
18 cd "$BUILD_DIR"
19 DEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
21 for prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
22 TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
23 build_qemu --cross-prefix=$prefix \
24 --enable-trace-backends=simple \
25 --enable-debug \
26 --enable-gnutls \
27 --enable-nettle \
28 --enable-curl \
29 --enable-vnc \
30 --enable-bzip2 \
31 --enable-guest-agent \
32 --with-sdlabi=1.2 \
33 --with-gtkabi=2.0
34 make clean
36 done