summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2021-10-28 22:44:41 -0500
committerZach van Rijn <me@zv.io>2022-11-02 13:21:59 -0500
commit71b1953d5f0ffe8ca41537eb5c84b6d641f1180e (patch)
tree1c194b6932bf16358c8cc3e842421e600087ee36
parentf501eba1775d96f4438e2086e4b66966f2ec06a8 (diff)
downloadpackages-add-apkf-config.tar.gz
packages-add-apkf-config.tar.bz2
packages-add-apkf-config.tar.xz
packages-add-apkf-config.zip
Add APK Foundry configuration for PPC64add-apkf-config
-rw-r--r--.apkfoundry/config.ini14
-rw-r--r--.apkfoundry/master/abuild.ppc64.conf16
-rwxr-xr-x.apkfoundry/master/bootstrap18
-rwxr-xr-x.apkfoundry/master/build27
-rwxr-xr-x.apkfoundry/master/refresh7
-rw-r--r--.apkfoundry/master/repositories.system1
-rw-r--r--.apkfoundry/master/world.system2
7 files changed, 85 insertions, 0 deletions
diff --git a/.apkfoundry/config.ini b/.apkfoundry/config.ini
new file mode 100644
index 000000000..92582b47e
--- /dev/null
+++ b/.apkfoundry/config.ini
@@ -0,0 +1,14 @@
+[master]
+rootfs.ppc = https://distfiles.adelielinux.org/adelie/1.0/iso/rc2/adelie-rootfs-mini-ppc-1.0-rc2.txz
+rootfs.ppc64 = https://distfiles.adelielinux.org/adelie/1.0/iso/rc2/adelie-rootfs-mini-ppc64-1.0-rc2.txz
+sha256.ppc = 0ac42c78874fdcebe0195ecebe451a1cfe3bccb29bacbcbc09e912ccfb41392b
+sha256.ppc64 = 00e6cf4c03c90f856d6b2094aa489d8be8275e23bb015833695da50c6329a13b
+exclude = ./dev/?*
+repos = system ppc ppc64
+ user ppc ppc64
+default_repo = system
+build.networking = false
+on_failure = recalculate
+persistent_repodest = true
+deps_ignore = system/easy-kernel system/bison system/kmod system/rsync
+ system/gzip system/coreutils
diff --git a/.apkfoundry/master/abuild.ppc64.conf b/.apkfoundry/master/abuild.ppc64.conf
new file mode 100644
index 000000000..f042e46be
--- /dev/null
+++ b/.apkfoundry/master/abuild.ppc64.conf
@@ -0,0 +1,16 @@
+# -O2 -> Perform second-level optimisations.
+# Not -Os because PPC64 machines aren't starved for space.
+# -ggdb -> Generate GDB debugging information.
+# This is used with splitdebug to make -dbg split packages.
+# -mcpu=970 -> Require a Power4+ "970" or higher CPU.
+# -mtune=power9 -> Tune for Power9 machines.
+# -maltivec -> Always enable AltiVec.
+# AltiVec extensions are available on every CPU we target.
+# -mlong-dou... -> Ensure musl ABI is followed.
+export CFLAGS="-O2 -ggdb -mcpu=970 -mtune=power9 -maltivec -mlong-double-64"
+export CXXFLAGS="$CFLAGS"
+export LDFLAGS="-Wl,--as-needed"
+export JOBS=64
+export MAKEFLAGS=-j$JOBS
+
+export DEFAULT_DBG="YesPlease"
diff --git a/.apkfoundry/master/bootstrap b/.apkfoundry/master/bootstrap
new file mode 100755
index 000000000..f108ea782
--- /dev/null
+++ b/.apkfoundry/master/bootstrap
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+# vi:noet
+. "$AF_LIBEXEC/af-functions"
+
+"${0%/*}/refresh"
+
+# If the hosts(5) and/or resolv.conf(5) are unmodified, apk will try to
+# overwrite them even though they are read-only. So we work around it
+# using symlinks.
+ln -srf /af/config/host/hosts /etc/hosts
+ln -srf /af/config/host/resolv.conf /etc/resolv.conf
+
+ln -srf /usr/share/zoneinfo/UTC /etc/localtime
+
+apk upgrade -Ual
+
+af_mkuser
+af_userconf
diff --git a/.apkfoundry/master/build b/.apkfoundry/master/build
new file mode 100755
index 000000000..88b56358d
--- /dev/null
+++ b/.apkfoundry/master/build
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+# vi:noet
+# Disable colors if logging to a separate file (see below)
+#export USE_COLORS=
+
+. /usr/share/abuild/functions.sh
+. "$AF_LIBEXEC/af-functions"
+
+# Logging each build to a separate file: (make sure to update
+# .gitlab-ci.yml to save artifacts if necessary):
+#
+#af_loginit -at
+
+printf "${STRONG}>>> Upgrading container${NORMAL}\n" >&2
+$SUDO_APK upgrade --available --latest
+
+printf "${STRONG}>>> Adding extra dependencies${NORMAL}\n" >&2
+case "$1" in
+# configure: error: GNAT is required to build ada
+system/gcc) $SUDO_APK add -t .makedepends-gcc-self gcc-gnat;;
+esac
+
+printf "${STRONG}>>> abuild -r${NORMAL}\n" >&2
+af_abuild
+
+printf "${STRONG}>>> checkapk${NORMAL}\n" >&2
+"$AF_LIBEXEC/checkapk"
diff --git a/.apkfoundry/master/refresh b/.apkfoundry/master/refresh
new file mode 100755
index 000000000..1e079009c
--- /dev/null
+++ b/.apkfoundry/master/refresh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+# vi:noet
+. "$AF_LIBEXEC/af-functions"
+
+cp "$AF_BRANCHDIR/repositories.$AF_REPO" /etc/apk/repositories
+cp "$AF_BRANCHDIR/world.$AF_REPO" /etc/apk/world
+cp "$AF_BRANCHDIR/abuild.$AF_ARCH.conf" /etc/abuild.conf
diff --git a/.apkfoundry/master/repositories.system b/.apkfoundry/master/repositories.system
new file mode 100644
index 000000000..70aa6e6ee
--- /dev/null
+++ b/.apkfoundry/master/repositories.system
@@ -0,0 +1 @@
+https://distfiles.adelielinux.org/adelie/1.0/system
diff --git a/.apkfoundry/master/world.system b/.apkfoundry/master/world.system
new file mode 100644
index 000000000..7aca3fffc
--- /dev/null
+++ b/.apkfoundry/master/world.system
@@ -0,0 +1,2 @@
+adelie-base-posix
+build-tools