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