From 804286f90d8553dc8a7c00274f14c640fecb0ad2 Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Tue, 11 Dec 2018 18:44:06 +0100 Subject: [PATCH 1/2] suse: fix port URL detection for aarch64 Fix port URL detection for aarch64, and error out if an unknown architecture is detected. Fixes: #215 Signed-off-by: Marco Vedovati --- rootfs-builder/suse/config.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rootfs-builder/suse/config.sh b/rootfs-builder/suse/config.sh index 8f4352560e..295e0b790c 100644 --- a/rootfs-builder/suse/config.sh +++ b/rootfs-builder/suse/config.sh @@ -35,15 +35,19 @@ SUSE_URL_BASE="${REPO_TRANSPORT}://${REPO_DOMAIN}" SUSE_PATH_OSS="/distribution/${OS_DISTRO,,}/$OS_VERSION/repo/oss" SUSE_PATH_UPDATE="/update/${OS_DISTRO,,}/$OS_VERSION/oss" -case "$(uname -m)" in +arch="$(uname -m)" +case "$arch" in x86_64) REPO_URL_PORT="" ;; ppc|ppc64le) REPO_URL_PORT="/ports/ppc" ;; + aarch64) + REPO_URL_PORT="/ports/aarch64" + ;; *) - REPO_URL_PORT="/ports/$arch" + die "Unsupported architecture: $arch" ;; esac SUSE_FULLURL_OSS="${SUSE_URL_BASE}${REPO_URL_PORT}${SUSE_PATH_OSS}" From 3366a32077b085d7a1aec887664563d3fa921b40 Mon Sep 17 00:00:00 2001 From: Marco Vedovati Date: Wed, 12 Dec 2018 18:16:32 +0100 Subject: [PATCH 2/2] README: add ARM architecture to openSUSE The openSUSE image can be built for ARM. Signed-off-by: Marco Vedovati --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eeecc24e14..ba3b8bad12 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,6 @@ For further details, see [the tests documentation](tests/README.md). | |Alpine |CentOS |ClearLinux |Debian/Ubuntu |EulerOS |Fedora |openSUSE | |-- |-- |-- |-- |-- |-- |-- |-- | -|**ARM64** |:heavy_check_mark:|:heavy_check_mark:| | |:heavy_check_mark:|:heavy_check_mark:| | +|**ARM64** |:heavy_check_mark:|:heavy_check_mark:| | |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |**PPC64le**|:heavy_check_mark:|:heavy_check_mark:| |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:| |**x86_64** |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|