diff options
Diffstat (limited to 'repo/qemu')
-rw-r--r-- | repo/qemu/qemu-static.xibuild.broken | 48 | ||||
-rw-r--r-- | repo/qemu/qemu.xibuild | 8 |
2 files changed, 53 insertions, 3 deletions
diff --git a/repo/qemu/qemu-static.xibuild.broken b/repo/qemu/qemu-static.xibuild.broken new file mode 100644 index 0000000..7c61e7a --- /dev/null +++ b/repo/qemu/qemu-static.xibuild.broken @@ -0,0 +1,48 @@ +#!/bin/sh + +DESC="Static builds of qemu for chrooting" + +build () { + cd "$BUILD_ROOT"/build-static + CFLAGS="$CFLAGS -O2" "$BUILD_ROOT"/configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/libexec \ + --localstatedir=/var \ + --disable-glusterfs \ + --disable-xen \ + --disable-glusterfs \ + --disable-debug-info \ + --disable-bsd-user \ + --disable-werror \ + --disable-xen \ + --enable-kvm \ + --enable-seccomp \ + --enable-linux-user \ + --disable-system \ + --static \ + --disable-docs \ + --disable-sdl \ + --disable-gtk \ + --disable-spice \ + --disable-tools \ + --disable-guest-agent \ + --disable-guest-agent-msi \ + --disable-curses \ + --disable-curl \ + --disable-gnutls \ + --disable-gcrypt \ + --disable-nettle \ + --disable-cap-ng \ + --disable-brlapi \ + --disable-mpath \ + --disable-libnfs \ + --disable-numa \ + --disable-capstone && \ + make ARFLAGS="rc" || exit 1 +} + +package () { + cd "$BUILD_ROOT"/build-static + make DESTDIR="$PKG_DEST" install +} diff --git a/repo/qemu/qemu.xibuild b/repo/qemu/qemu.xibuild index 4660aaf..d859027 100644 --- a/repo/qemu/qemu.xibuild +++ b/repo/qemu/qemu.xibuild @@ -28,7 +28,7 @@ prepare () { } build() { - mkdir -p "$BUILD_ROOT"/build + mkdir -p "$BUILD_ROOT"/build "$BUILD_ROOT"/build-static cd "$BUILD_ROOT"/build CFLAGS="$CFLAGS -O2" "$BUILD_ROOT"/configure \ --prefix=/usr \ @@ -53,8 +53,10 @@ build() { --enable-sdl \ --enable-spice \ --enable-virglrenderer \ - --enable-gtk - make ARFLAGS="rc" + --enable-gtk && + make ARFLAGS="rc" || exit 1 + cd .. + } package() { |