feat: arch packages with dkms kvm modules and patched qemu
This commit is contained in:
46
packaging/vfio-native-qemu/.SRCINFO
Normal file
46
packaging/vfio-native-qemu/.SRCINFO
Normal file
@@ -0,0 +1,46 @@
|
||||
pkgbase = vfio-native-qemu
|
||||
pkgdesc = QEMU 11.1.1 with the vfio-native platform-identity patches, in /opt/qemu-native
|
||||
pkgver = 11.1.1
|
||||
pkgrel = 1
|
||||
url = https://git.archworks.co/sandwich/vfio-native
|
||||
arch = x86_64
|
||||
license = GPL-2.0-only
|
||||
makedepends = git
|
||||
makedepends = meson
|
||||
makedepends = ninja
|
||||
makedepends = python
|
||||
depends = glib2
|
||||
depends = pixman
|
||||
depends = zlib
|
||||
depends = zstd
|
||||
depends = libaio
|
||||
depends = liburing
|
||||
depends = libcap-ng
|
||||
depends = libseccomp
|
||||
depends = gnutls
|
||||
depends = nettle
|
||||
depends = libslirp
|
||||
depends = spice
|
||||
depends = spice-protocol
|
||||
depends = libepoxy
|
||||
depends = virglrenderer
|
||||
depends = mesa
|
||||
depends = libjpeg-turbo
|
||||
depends = libpng
|
||||
depends = libusb
|
||||
depends = usbredir
|
||||
depends = numactl
|
||||
depends = libxkbcommon
|
||||
depends = libgcrypt
|
||||
depends = libtasn1
|
||||
depends = lzo
|
||||
depends = snappy
|
||||
depends = pipewire
|
||||
optdepends = vfio-native: the setup tooling that points a domain at this build
|
||||
options = !strip
|
||||
source = git+https://git.archworks.co/sandwich/vfio-native.git#tag=v1.1.0
|
||||
source = https://download.qemu.org/qemu-11.1.1.tar.xz
|
||||
sha256sums = SKIP
|
||||
sha256sums = 079ffbff8a7111bbc89022107cbabf3bbfd614d5fc9d7cc675991196aca12482
|
||||
|
||||
pkgname = vfio-native-qemu
|
||||
50
packaging/vfio-native-qemu/PKGBUILD
Normal file
50
packaging/vfio-native-qemu/PKGBUILD
Normal file
@@ -0,0 +1,50 @@
|
||||
# Maintainer: Sandwich <sandwich@archworks.co>
|
||||
#
|
||||
# QEMU 11.1.1 with the platform-identity patches from vfio-native, installed
|
||||
# under /opt/qemu-native so the system qemu package is never touched. Clears
|
||||
# FIRMWARE, VIRTUAL_DISK, DISK_SERIAL, PCI_VENDOR, DEVICES, QEMU_FW_CFG and
|
||||
# QEMU_USB. Only the x86_64 system emulator is built.
|
||||
|
||||
pkgname=vfio-native-qemu
|
||||
_qver=11.1.1
|
||||
_tag=1.1.0
|
||||
pkgver=${_qver}
|
||||
pkgrel=1
|
||||
pkgdesc="QEMU ${_qver} with the vfio-native platform-identity patches, in /opt/qemu-native"
|
||||
arch=('x86_64')
|
||||
url="https://git.archworks.co/sandwich/vfio-native"
|
||||
license=('GPL-2.0-only')
|
||||
depends=('glib2' 'pixman' 'zlib' 'zstd' 'libaio' 'liburing' 'libcap-ng' 'libseccomp'
|
||||
'gnutls' 'nettle' 'libslirp' 'spice' 'spice-protocol' 'libepoxy' 'virglrenderer'
|
||||
'mesa' 'libjpeg-turbo' 'libpng' 'libusb' 'usbredir' 'numactl' 'libxkbcommon'
|
||||
'libgcrypt' 'libtasn1' 'lzo' 'snappy' 'pipewire')
|
||||
makedepends=('git' 'meson' 'ninja' 'python')
|
||||
optdepends=('vfio-native: the setup tooling that points a domain at this build')
|
||||
options=('!strip')
|
||||
source=("git+${url}.git#tag=v${_tag}"
|
||||
"https://download.qemu.org/qemu-${_qver}.tar.xz")
|
||||
sha256sums=('SKIP'
|
||||
'079ffbff8a7111bbc89022107cbabf3bbfd614d5fc9d7cc675991196aca12482')
|
||||
|
||||
prepare() {
|
||||
cd "qemu-${_qver}"
|
||||
for p in "${srcdir}"/vfio-native/patches/qemu/0[1-8]-*.patch; do
|
||||
msg2 "applying ${p##*/}"
|
||||
patch -Np1 --no-backup-if-mismatch -i "$p"
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "qemu-${_qver}"
|
||||
mkdir -p build && cd build
|
||||
../configure --prefix=/opt/qemu-native --target-list=x86_64-softmmu \
|
||||
--enable-kvm --enable-spice --enable-opengl --enable-virglrenderer \
|
||||
--enable-tpm --enable-slirp --disable-docs --disable-werror --disable-user \
|
||||
--disable-gtk --disable-sdl
|
||||
ninja
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "qemu-${_qver}/build"
|
||||
DESTDIR="${pkgdir}" ninja install
|
||||
}
|
||||
Reference in New Issue
Block a user