Rework QEMU build script.
This commit is contained in:
parent
a3497c0a3d
commit
d4ebec3353
@ -20,8 +20,7 @@ patch -p1 < python3-always-pip.patch
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--with-ensurepip=yes \
|
||||
--without-doc-strings \
|
||||
--ax_cv_v_float_words_bigendian=no
|
||||
--without-doc-strings
|
||||
|
||||
make
|
||||
make DESTDIR="$1" install
|
||||
|
@ -1,5 +1,8 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
TARGETS='i386-softmmu i386-linux-user riscv32-softmmu riscv32-linux-user riscv64-softmmu riscv64-linux-user x86_64-softmmu x86_64-linux-user'
|
||||
|
||||
|
||||
for patch in *.patch; do
|
||||
patch -p1 < "$patch"
|
||||
done
|
||||
@ -12,38 +15,70 @@ sed -i 's/#include <sys\/sysinfo.h>//' linux-user/syscall.c
|
||||
# Remove bash dependency
|
||||
sed -i 's/env bash/env sh/g' Makefile
|
||||
|
||||
# Build qemu-system* binaries dynamically linked
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--localstatedir=/var \
|
||||
--sysconfdir=/etc \
|
||||
--without-default-features \
|
||||
--disable-user \
|
||||
--disable-debug-info \
|
||||
--disable-gtk \
|
||||
--disable-docs \
|
||||
--disable-plugins \
|
||||
--disable-guest-agent \
|
||||
--disable-gnutls \
|
||||
--disable-nettle \
|
||||
--disable-gcrypt \
|
||||
--disable-curl \
|
||||
--disable-fuse \
|
||||
--disable-tpm \
|
||||
--enable-sdl \
|
||||
--enable-curses \
|
||||
--enable-kvm \
|
||||
--enable-pie \
|
||||
--enable-curses \
|
||||
--disable-user \
|
||||
--disable-linux-user \
|
||||
--enable-system
|
||||
|
||||
make
|
||||
make DESTDIR="$1" PREFIX=/usr install
|
||||
make clean
|
||||
|
||||
# Build qemu Linux user binaries statically linked.
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--localstatedir=/var \
|
||||
--sysconfdir=/etc \
|
||||
--disable-debug-info \
|
||||
--disable-gtk \
|
||||
--disable-docs \
|
||||
--disable-user \
|
||||
--enable-linux-user \
|
||||
--disable-system \
|
||||
--static
|
||||
--enable-system \
|
||||
--enable-sanitizers \
|
||||
--enable-slirp \
|
||||
--enable-tools \
|
||||
--enable-avx2 \
|
||||
--enable-multiprocess \
|
||||
--enable-membarrier \
|
||||
--enable-coroutine-pool \
|
||||
--target-list="$TARGETS"
|
||||
|
||||
|
||||
# # Build qemu-system* binaries dynamically linked
|
||||
# ./configure \
|
||||
# --prefix=/usr \
|
||||
# --localstatedir=/var \
|
||||
# --sysconfdir=/etc \
|
||||
# --disable-debug-info \
|
||||
# --disable-gtk \
|
||||
# --disable-docs \
|
||||
# --enable-sdl \
|
||||
# --enable-kvm \
|
||||
# --enable-pie \
|
||||
# --enable-curses \
|
||||
# --disable-user \
|
||||
# --disable-linux-user \
|
||||
# --enable-system
|
||||
|
||||
# make
|
||||
# make DESTDIR="$1" PREFIX=/usr install
|
||||
# make clean
|
||||
|
||||
# # Build qemu Linux user binaries statically linked.
|
||||
# ./configure \
|
||||
# --prefix=/usr \
|
||||
# --localstatedir=/var \
|
||||
# --sysconfdir=/etc \
|
||||
# --disable-debug-info \
|
||||
# --disable-gtk \
|
||||
# --disable-docs \
|
||||
# --disable-user \
|
||||
# --enable-linux-user \
|
||||
# --disable-system \
|
||||
# --static
|
||||
|
||||
make
|
||||
make DESTDIR="$1" PREFIX=/usr install
|
||||
|
Loading…
Reference in New Issue
Block a user