xref: /openbmc/qemu/tests/docker/test-mingw (revision 5deb2de1)
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-gnutls \
26c4f0eed1SFam Zheng        --enable-nettle \
27c4f0eed1SFam Zheng        --enable-curl \
28c4f0eed1SFam Zheng        --enable-vnc \
29c4f0eed1SFam Zheng        --enable-bzip2 \
30*5deb2de1SPhilippe Mathieu-Daudé        --enable-guest-agent \
31*5deb2de1SPhilippe Mathieu-Daudé        --enable-docs
3262838478SPaolo Bonzini    install_qemu
33*5deb2de1SPhilippe Mathieu-Daudé    make installer
34c4f0eed1SFam Zheng    make clean
35c4f0eed1SFam Zheng
36c4f0eed1SFam Zhengdone
37