xref: /openbmc/qemu/tests/docker/test-mingw (revision c4f0eed1)
1*c4f0eed1SFam Zheng#!/bin/bash -e
2*c4f0eed1SFam Zheng#
3*c4f0eed1SFam Zheng# Cross compile QEMU with mingw toolchain on Linux.
4*c4f0eed1SFam Zheng#
5*c4f0eed1SFam Zheng# Copyright (c) 2016 Red Hat Inc.
6*c4f0eed1SFam Zheng#
7*c4f0eed1SFam Zheng# Authors:
8*c4f0eed1SFam Zheng#  Fam Zheng <famz@redhat.com>
9*c4f0eed1SFam Zheng#
10*c4f0eed1SFam Zheng# This work is licensed under the terms of the GNU GPL, version 2
11*c4f0eed1SFam Zheng# or (at your option) any later version. See the COPYING file in
12*c4f0eed1SFam Zheng# the top-level directory.
13*c4f0eed1SFam Zheng
14*c4f0eed1SFam Zheng. common.rc
15*c4f0eed1SFam Zheng
16*c4f0eed1SFam Zhengrequires mingw dtc
17*c4f0eed1SFam Zheng
18*c4f0eed1SFam Zhengfor prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
19*c4f0eed1SFam Zheng    TARGET_LIST=x86_64-softmmu,aarch64-softmmu \
20*c4f0eed1SFam Zheng        build_qemu --cross-prefix=$prefix \
21*c4f0eed1SFam Zheng        --enable-trace-backends=simple \
22*c4f0eed1SFam Zheng        --enable-debug \
23*c4f0eed1SFam Zheng        --enable-gnutls \
24*c4f0eed1SFam Zheng        --enable-nettle \
25*c4f0eed1SFam Zheng        --enable-curl \
26*c4f0eed1SFam Zheng        --enable-vnc \
27*c4f0eed1SFam Zheng        --enable-bzip2 \
28*c4f0eed1SFam Zheng        --enable-guest-agent \
29*c4f0eed1SFam Zheng        --with-sdlabi=1.2 \
30*c4f0eed1SFam Zheng        --with-gtkabi=2.0
31*c4f0eed1SFam Zheng    make clean
32*c4f0eed1SFam Zheng
33*c4f0eed1SFam Zhengdone
34*c4f0eed1SFam Zheng
35