diff options
author | Konstantinos Smanis <konstantinos.smanis@gmail.com> | 2021-08-04 23:35:41 +0300 |
---|---|---|
committer | Alexys Jacob <ultrabug@gentoo.org> | 2021-08-20 20:05:13 +0200 |
commit | 7d477af788c1b206bd22d1268ed75e842d3fe00e (patch) | |
tree | 9f4a9a089f76c79d1d9e2d92148701b25a7deff5 /build.sh | |
parent | Add support for systemd and musl-hardened profiles to ppc64le. (diff) | |
download | docker-images-7d477af788c1b206bd22d1268ed75e842d3fe00e.tar.gz docker-images-7d477af788c1b206bd22d1268ed75e842d3fe00e.tar.bz2 docker-images-7d477af788c1b206bd22d1268ed75e842d3fe00e.zip |
Update stage3 targets
Closes: #109
Signed-off-by: Konstantinos Smanis <konstantinos.smanis@gmail.com>
Closes: https://github.com/gentoo/gentoo-docker-images/pull/108
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -5,7 +5,7 @@ # Example usage: TARGET=stage3-amd64 ./build.sh if [[ -z "$TARGET" ]]; then - echo "TARGET environment variable must be set e.g. TARGET=stage3-amd64." + echo "TARGET environment variable must be set e.g. TARGET=stage3-amd64-openrc." exit 1 fi @@ -33,6 +33,11 @@ case $ARCH in MICROARCH="${ARCH}" ARCH="arm" ;; + "i686") + DOCKER_ARCH="386" + MICROARCH="${ARCH}" + ARCH="x86" + ;; "ppc64le") DOCKER_ARCH="${ARCH}" MICROARCH="${ARCH}" @@ -43,20 +48,11 @@ case $ARCH in MICROARCH="${ARCH}" ARCH="s390" ;; - "x86") - DOCKER_ARCH="386" - MICROARCH="i686" - ;; *) # portage DOCKER_ARCH="amd64" ;; esac -# Handle targets with special characters in the suffix -if [[ "${TARGET}" == "stage3-amd64-hardened-nomultilib" ]]; then - SUFFIX="hardened+nomultilib" -fi - # Prefix the suffix with a hyphen to make sure the URL works if [[ -n "${SUFFIX}" ]]; then SUFFIX="-${SUFFIX}" |