summaryrefslogtreecommitdiff
path: root/repo/qemu
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
committerdavidovski <david@davidovski.xyz>2022-07-15 00:52:21 +0100
commit9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (patch)
tree278bbf05c72536a30e701eebbd3546ba137543e7 /repo/qemu
parentf6332a43c35387c4a2dea1746be5fd092890ae0e (diff)
added python deps for libvirt
Diffstat (limited to 'repo/qemu')
-rw-r--r--repo/qemu/qemu-static.xibuild.broken48
-rw-r--r--repo/qemu/qemu.xibuild8
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() {