summaryrefslogtreecommitdiff
path: root/user/opal-utils/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/opal-utils/APKBUILD')
-rw-r--r--user/opal-utils/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/user/opal-utils/APKBUILD b/user/opal-utils/APKBUILD
new file mode 100644
index 000000000..d6eddcd70
--- /dev/null
+++ b/user/opal-utils/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=opal-utils
+pkgver=6.3.1
+pkgrel=0
+pkgdesc="Tools for IBM FSP and OpenPOWER systems"
+url="https://lists.ozlabs.org/listinfo/skiboot"
+arch="ppc64"
+license="Apache-2.0"
+depends=""
+makedepends=""
+subpackages="$pkgname-doc"
+source="skiboot-$pkgver.tar.gz::https://github.com/open-power/skiboot/archive/v$pkgver.tar.gz
+ musl.patch
+ opal-prd.patch
+ "
+builddir="$srcdir/skiboot-$pkgver"
+
+_tools="opal-prd gard"
+
+build() {
+ for _tool in $_tools; do
+ cd "$builddir"/external/$_tool
+ make
+ done
+}
+
+check() {
+ for _tool in $_tools; do
+ cd "$builddir"/external/$_tool
+ make test
+ done
+}
+
+package() {
+ for _tool in $_tools; do
+ cd "$builddir"/external/$_tool
+ make DESTDIR="$pkgdir" prefix="/usr" install
+ done
+}
+
+sha512sums="ad2156d864cedcf3d19e8ff094d12059703aaf9a5ea8403e230ecf33d331dae45e0f28a89c65ad05f94605e493bc8d42df92698847600810d5609bc56ade24b8 skiboot-6.3.1.tar.gz
+e7480f16b6eb41fd65b40ea1f20031118030f24681b7b8afcfdebb8cde7625e45902683cfb5fe0af3259060fb1b92b9c2f5d62354de356e7706a7f08ad9f772e musl.patch
+944dd564a2c846a675544c8ecdb2fa4714235f3fd974e135a71220379640f94883811399fe03d2d697fcb49e219504af264af0f201a6a7b37029687dea6a28cf opal-prd.patch"