-
Notifications
You must be signed in to change notification settings - Fork 71
/
configure_qemu.sh
executable file
·79 lines (74 loc) · 1.93 KB
/
configure_qemu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env sh
set -e
: "${QEMU_TARGETS=}"
arch="$(xx-info arch)"
if [ -z "$QEMU_TARGETS" ]; then
if [ "$arch" != "amd64" ]; then
QEMU_TARGETS="$QEMU_TARGETS x86_64-linux-user"
fi
if [ "$arch" != "arm64" ]; then
QEMU_TARGETS="$QEMU_TARGETS aarch64-linux-user"
fi
if [ "$arch" != "arm" ]; then
QEMU_TARGETS="$QEMU_TARGETS arm-linux-user"
fi
if [ "$arch" != "riscv64" ]; then
QEMU_TARGETS="$QEMU_TARGETS riscv64-linux-user"
fi
if [ "$arch" != "ppc64le" ]; then
QEMU_TARGETS="$QEMU_TARGETS ppc64le-linux-user"
fi
if [ "$arch" != "s390x" ]; then
QEMU_TARGETS="$QEMU_TARGETS s390x-linux-user"
fi
if [ "$arch" != "386" ] ; then
QEMU_TARGETS="$QEMU_TARGETS i386-linux-user"
fi
if [ "$arch" != "mips64le" ] ; then
QEMU_TARGETS="$QEMU_TARGETS mips64el-linux-user"
fi
if [ "$arch" != "mips64" ] ; then
QEMU_TARGETS="$QEMU_TARGETS mips64-linux-user"
fi
if [ "$arch" != "loong64" ] ; then
QEMU_TARGETS="$QEMU_TARGETS loongarch64-linux-user"
fi
fi
set -x
./configure \
--prefix=/usr \
--with-pkgversion=$QEMU_VERSION \
--enable-linux-user \
--disable-system \
--static \
--disable-brlapi \
--disable-cap-ng \
--disable-capstone \
--disable-curl \
--disable-curses \
--disable-docs \
--disable-gcrypt \
--disable-gnutls \
--disable-gtk \
--disable-guest-agent \
--disable-guest-agent-msi \
--disable-libiscsi \
--disable-libnfs \
--disable-mpath \
--disable-nettle \
--disable-opengl \
--disable-pie \
--disable-sdl \
--disable-spice \
--disable-tools \
--disable-vte \
--disable-werror \
--disable-debug-info \
--disable-glusterfs \
--cross-prefix=$(xx-info)- \
--host-cc=$(xx-clang --print-target-triple)-clang \
--host=$(xx-clang --print-target-triple) \
--build=$(TARGETPLATFORM= TARGETPAIR= xx-clang --print-target-triple) \
--cc=$(xx-clang --print-target-triple)-clang \
--extra-ldflags=-latomic \
--target-list="$QEMU_TARGETS"