xref: /openbmc/qemu/tests/docker/test-mingw (revision 62838478)
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
18c16fe84fSFam Zhengcd "$BUILD_DIR"
1986a17cb3SAlex BennéeDEF_TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
20c16fe84fSFam Zheng
21c4f0eed1SFam Zhengfor prefix in x86_64-w64-mingw32- i686-w64-mingw32-; do
2286a17cb3SAlex Bennée    TARGET_LIST=${TARGET_LIST:-$DEF_TARGET_LIST} \
23c4f0eed1SFam Zheng        build_qemu --cross-prefix=$prefix \
24c4f0eed1SFam Zheng        --enable-trace-backends=simple \
25c4f0eed1SFam Zheng        --enable-debug \
26c4f0eed1SFam Zheng        --enable-gnutls \
27c4f0eed1SFam Zheng        --enable-nettle \
28c4f0eed1SFam Zheng        --enable-curl \
29c4f0eed1SFam Zheng        --enable-vnc \
30c4f0eed1SFam Zheng        --enable-bzip2 \
31c4f0eed1SFam Zheng        --enable-guest-agent \
32c4f0eed1SFam Zheng        --with-sdlabi=1.2 \
33c4f0eed1SFam Zheng        --with-gtkabi=2.0
34*62838478SPaolo Bonzini    install_qemu
35c4f0eed1SFam Zheng    make clean
36c4f0eed1SFam Zheng
37c4f0eed1SFam Zhengdone
38c4f0eed1SFam Zheng
39