diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-06-23 13:08:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-06-23 13:12:27 +0000 |
commit | ee9c5b2f5e0f1cfffc9f9c247baacf851cf18e47 (patch) | |
tree | b29bb77d928020d483663c558551e8d742126adc /main | |
parent | 65d45d3421e310037de30d1a30ec2d1b03b863e7 (diff) | |
download | aports-ee9c5b2f5e0f1cfffc9f9c247baacf851cf18e47.tar.bz2 aports-ee9c5b2f5e0f1cfffc9f9c247baacf851cf18e47.tar.xz |
main/xen: enable build for arm
Diffstat (limited to 'main')
-rw-r--r-- | main/xen/APKBUILD | 35 |
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 |