aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/xen/APKBUILD35
1 files changed, 27 insertions, 8 deletions
diff --git a/main/xen/APKBUILD b/main/xen/APKBUILD
index f39d7a890f..afc4cf7a70 100644
--- a/main/xen/APKBUILD
+++ b/main/xen/APKBUILD
@@ -3,17 +3,28 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=xen
pkgver=4.6.3
-pkgrel=0
+pkgrel=1
pkgdesc="Xen hypervisor"
url="http://www.xen.org/"
-arch="x86_64"
+arch="x86_64 armhf"
license="GPL"
-depends="syslinux bash iproute2 logrotate"
+depends="bash iproute2 logrotate"
depends_dev="openssl-dev python-dev e2fsprogs-dev gettext zlib-dev ncurses-dev
- dev86 texinfo perl iasl pciutils-dev glib-dev yajl-dev libnl3-dev
+ dev86 texinfo perl pciutils-dev glib-dev yajl-dev libnl3-dev
spice-dev gnutls-dev curl-dev libaio-dev lzo-dev xz-dev util-linux-dev
e2fsprogs-dev linux-headers argp-standalone"
-makedepends="$depends_dev autoconf automake libtool seabios-bin"
+makedepends="$depends_dev autoconf automake libtool "
+
+case "$CARCH" in
+x86*)
+ depends="$depends syslinux"
+ makedepends="$makedepends iasl seabios-bin"
+ ;;
+arm*)
+ makedepends="$makedepends dtc-dev"
+ ;;
+esac
+
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-hypervisor"
@@ -127,6 +138,10 @@ munge_cflags() {
unset LDFLAGS
unset LANG
unset LC_ALL
+
+ case "$CARCH" in
+ armhf) export CFLAGS="-mcpu=cortex-a15";;
+ esac
}
# These tasks are added as separate tasks to enable a packager
@@ -173,12 +188,13 @@ build_stubdom() {
build() {
cd "$_builddir"
-
configure || return 1
build_hypervisor || return 1
build_tools || return 1
build_docs || return 1
- build_stubdom || return 1
+ case "$CARCH" in
+ x86*) build_stubdom || return 1;;
+ esac
${CC:-gcc} -o xen-fd-is-file "$srcdir"/xen-fd-is-file.c
}
@@ -190,7 +206,10 @@ package() {
unset LDFLAGS
make -j1 DESTDIR="$pkgdir" install-xen install-tools install-docs \
- install-stubdom || return 1
+ || return 1
+ case "$CARCH" in
+ x86*) make -j1 DESTDIR="$pkgdir" install-stubdom || return 1;;
+ esac
# remove default xencommons
rm -rf "$pkgdir"/etc/init.d/xencommons