aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Everitt <michael@2e0cer.net>2020-07-28 09:30:17 +0100
committerAlexys Jacob <ultrabug@gentoo.org>2020-08-20 11:28:18 +0200
commit4db589571a25fcaec79479dcb8d902b40dd3f995 (patch)
treea8314ef7ef6a7de8edbf83f14b1433cd6a1ffe7c
parentFix stage3 generation (diff)
downloaddocker-images-4db589571a25fcaec79479dcb8d902b40dd3f995.tar.gz
docker-images-4db589571a25fcaec79479dcb8d902b40dd3f995.tar.bz2
docker-images-4db589571a25fcaec79479dcb8d902b40dd3f995.zip
Add support for musl stage3s on amd64/x86
Signed-off-by: Michael Everitt <gentoo@veremit.xyz> Closes: https://github.com/gentoo/gentoo-docker-images/pull/84 Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
-rw-r--r--.travis.yml3
-rwxr-xr-xbuild.sh5
2 files changed, 7 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index b606fef..4d8417d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,9 +11,12 @@ env:
- TARGET=stage3-amd64-hardened-nomultilib
- TARGET=stage3-amd64-nomultilib
- TARGET=stage3-amd64-systemd
+ - TARGET=stage3-amd64-musl-vanilla
+ - TARGET=stage3-amd64-musl-hardened
- TARGET=stage3-x86
- TARGET=stage3-x86-hardened
- TARGET=stage3-armv7a
+ - TARGET=stage3-x86-musl-vanilla
- TARGET=stage3-ppc
- TARGET=stage3-ppc64
- TARGET=stage3-ppc64le
diff --git a/build.sh b/build.sh
index feacd63..887b597 100755
--- a/build.sh
+++ b/build.sh
@@ -14,7 +14,10 @@ IFS=- read -r NAME ARCH SUFFIX <<< "${TARGET}"
DOCKER_ARCH="${ARCH}"
# Ensure upstream directories for stage3-amd64-hardened+nomultilib work
-SUFFIX=${SUFFIX/-/+}
+# unless we're building for musl targets (vanilla/hardened)
+if [[ "${SUFFIX}" != *musl* ]]; then
+ SUFFIX=${SUFFIX/-/+}
+fi
VERSION=${VERSION:-$(date -u +%Y%m%d)}