Commit 6d5ba0f6 authored by Henrik Riomar's avatar Henrik Riomar

main/xen: split xen-qemu

The qemu files are optional and takes lots of space

seabios only needed in runtime by xen-qemu, but its also
a build dependency.
parent bd4e89c6
Pipeline #69135 passed with stages
in 7 minutes and 51 seconds
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xen
pkgver=4.14.1
pkgrel=1
pkgrel=2
pkgdesc="Xen hypervisor"
url="https://www.xenproject.org/"
arch="x86_64 armhf aarch64" # enable armv7 when builds with gcc8
......@@ -239,8 +239,7 @@ options="!strip"
case "$CARCH" in
x86*)
depends="$depends seabios-bin"
makedepends="$makedepends iasl"
makedepends="$makedepends iasl seabios-bin"
;;
arm*)
makedepends="$makedepends dtc-dev"
......@@ -254,7 +253,7 @@ esac
# subpackages="$pkgname-dbg"
#fi
subpackages="$subpackages $pkgname-doc $pkgname-dev $pkgname-libs
$pkgname-hypervisor $pkgname-bridge"
$pkgname-hypervisor $pkgname-bridge $pkgname-qemu"
# grep _VERSION= stubdom/configure
_ZLIB_VERSION="1.2.3"
......@@ -520,6 +519,35 @@ EOF
}
qemu() {
pkgdesc="QEMU for XEN"
case "$CARCH" in
x86*)
depends="$depends seabios-bin"
;;
esac
mkdir -p "$subpkgdir"/etc/conf.d \
"$subpkgdir"/etc/init.d \
"$subpkgdir"/usr/lib/xen/bin
mv "$pkgdir"/etc/conf.d/xenqemu "$subpkgdir"/etc/conf.d
mv "$pkgdir"/etc/init.d/xenqemu "$subpkgdir"/etc/init.d
mv "$pkgdir"/usr/lib/xen/bin/qemu* "$subpkgdir"/usr/lib/xen/bin
mv "$pkgdir"/usr/share/qemu-xen "$subpkgdir"/usr/share
case "$CARCH" in
x86*)
# these files are only in the x86* builds
mkdir -p "$subpkgdir"/etc/xen/scripts \
"$subpkgdir"/usr/bin \
"$subpkgdir"/usr/share/xen
mv "$pkgdir"/etc/xen/scripts/qemu-ifup "$subpkgdir"/etc/xen/scripts
mv "$pkgdir"/usr/bin/qemu* "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/share/xen/qemu "$subpkgdir"/usr/share/xen
;;
esac
}
sha512sums="c75cbec82793435f5a7026626ffdb2e9a2166b42d2be4b2f1194240e0312458124f0ebd53eeb02ce7330c22afe402a28a96b32f8af66e41e9416fe94535724c9 xen-4.14.1.tar.gz
2e0b0fd23e6f10742a5517981e5171c6e88b0a93c83da701b296f5c0861d72c19782daab589a7eac3f9032152a0fc7eff7f5362db8fccc4859564a9aa82329cf gmp-4.3.2.tar.bz2
c2bc9ffc8583aeae71cee9ddcc4418969768d4e3764d47307da54f93981c0109fb07d84b061b3a3628bd00ba4d14a54742bc04848110eb3ae8ca25dbfbaabadb grub-0.97.tar.gz
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment