aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-06-08 13:40:18 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-06-08 14:15:50 -0400
commit5666b88c698fe0ad85bf2e7646f0e9c837e2a08b (patch)
treef5e60a4715c0a7da749f683d46c7330ffd4c5943
parent889be5b2757af1e61c2710c521a436c9506e1d9f (diff)
downloadkutter-5666b88c698fe0ad85bf2e7646f0e9c837e2a08b.tar.gz
kutter-5666b88c698fe0ad85bf2e7646f0e9c837e2a08b.tar.xz
kutter-5666b88c698fe0ad85bf2e7646f0e9c837e2a08b.zip
ar100: Convert to or1k-elf toolchain
The more.musl.cc site is blocking downloads from all github actions, which makes it difficult to use that site for the ar100 cross build toolchain. Convert to the openrisc or1k-elf toolchain as a replacement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rwxr-xr-xscripts/ci-build.sh2
-rwxr-xr-xscripts/ci-install.sh18
-rw-r--r--src/ar100/Makefile2
3 files changed, 10 insertions, 12 deletions
diff --git a/scripts/ci-build.sh b/scripts/ci-build.sh
index b09b3ef7..49675bd4 100755
--- a/scripts/ci-build.sh
+++ b/scripts/ci-build.sh
@@ -8,7 +8,7 @@ set -eu
MAIN_DIR=${PWD}
BUILD_DIR=${PWD}/ci_build
export PATH=${BUILD_DIR}/pru-elf/bin:${PATH}
-export PATH=${BUILD_DIR}/or1k-linux-musl-cross/bin:${PATH}
+export PATH=${BUILD_DIR}/or1k-elf/bin:${PATH}
PYTHON=${BUILD_DIR}/python-env/bin/python
PYTHON2=${BUILD_DIR}/python2-env/bin/python
diff --git a/scripts/ci-install.sh b/scripts/ci-install.sh
index 4ff28e54..28f7b654 100755
--- a/scripts/ci-install.sh
+++ b/scripts/ci-install.sh
@@ -39,20 +39,18 @@ tar xJf ${CACHE_DIR}/${PRU_ARCHIVE}
######################################################################
-# Install or1k-linux-musl toolchain
+# Install or1k toolchain
######################################################################
-echo -e "\n\n=============== Install or1k-linux-musl toolchain\n\n"
-TOOLCHAIN=or1k-linux-musl-cross
-TOOLCHAIN_ZIP=${TOOLCHAIN}.tgz
-GCC_VERSION=10
-TOOLCHAIN_ZIP_V=${TOOLCHAIN}-${GCC_VERSION}.tgz
-URL=https://more.musl.cc/${GCC_VERSION}/x86_64-linux-musl/
-if [ ! -f ${CACHE_DIR}/${TOOLCHAIN_ZIP_V} ]; then
- wget "${URL}/${TOOLCHAIN_ZIP}" -O "${CACHE_DIR}/${TOOLCHAIN_ZIP_V}"
+echo -e "\n\n=============== Install or1k toolchain\n\n"
+OR1K_ARCHIVE="or1k-elf-12.0.1-20220210-20220304.tar.xz"
+OR1K_REL="or1k-12.0.1-20220210-20220304"
+OR1K_URL="https://github.com/openrisc/or1k-gcc/releases/download/${OR1K_REL}/${OR1K_ARCHIVE}"
+if [ ! -f ${CACHE_DIR}/${OR1K_ARCHIVE} ]; then
+ wget "${OR1K_URL}" -O "${CACHE_DIR}/${OR1K_ARCHIVE}"
fi
cd ${BUILD_DIR}
-tar xf ${CACHE_DIR}/${TOOLCHAIN_ZIP_V}
+tar xJf ${CACHE_DIR}/${OR1K_ARCHIVE}
######################################################################
diff --git a/src/ar100/Makefile b/src/ar100/Makefile
index 29693fe2..275944d4 100644
--- a/src/ar100/Makefile
+++ b/src/ar100/Makefile
@@ -1,4 +1,4 @@
-CROSS_PREFIX=or1k-linux-musl-
+CROSS_PREFIX=or1k-elf-
dirs-y += src/generic src/ar100 lib/ar100
CFLAGS += -O3