From 0a9b42a1b50ef8a15e7544c81435f1410497a8b6 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Thu, 1 Sep 2022 20:48:30 +0200 Subject: [PATCH] tools: Add aarch64 bootlin toolchains --- tools/cross_compile.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/tools/cross_compile.sh b/tools/cross_compile.sh index d8d1183c96..7234581b71 100755 --- a/tools/cross_compile.sh +++ b/tools/cross_compile.sh @@ -241,6 +241,14 @@ function expand_bootlin_config() { local -r GCC_DIR=${ARCHIVE_DIR}/${GCC_RELATIVE_DIR} case "${TARGET}" in + "aarch64") + local -r POWER_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64/tarballs/aarch64--glibc--stable-2021.11-1.tar.bz2" + local -r GCC_PREFIX="aarch64" + ;; + "aarch64be") + local -r POWER_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/aarch64be/tarballs/aarch64be--glibc--stable-2021.11-1.tar.bz2" + local -r GCC_PREFIX="aarch64_be" + ;; "ppc64le") local -r POWER_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--glibc--stable-2021.11-1.tar.bz2" local -r GCC_PREFIX="powerpc64le" @@ -355,10 +363,11 @@ DESCRIPTION \t* PROJECT: glop or-tools \t* TARGET: \t\tx86_64 -\t\taarch64-linux-gnu aarch64_be-linux-gnu -\t\tmips64 mips64el -\t\tppc -\t\tppc64 ppc64le +\t\taarch64 aarch64be (bootlin) +\t\taarch64-linux-gnu aarch64_be-linux-gnu (linaro) +\t\tmips64 mips64el (codespace) +\t\tppc (bootlin) +\t\tppc64 ppc64le (bootlin) OPTIONS \t-h --help: show this help text @@ -424,6 +433,12 @@ function main() { aarch64_be-linux-gnu) expand_linaro_config declare -r QEMU_ARCH=aarch64_be ;; + aarch64) + expand_bootlin_config + declare -r QEMU_ARCH=aarch64 ;; + aarch64be) + expand_bootlin_config + declare -r QEMU_ARCH=aarch64_be ;; mips64) expand_codescape_config declare -r QEMU_ARCH=mips64 ;;