From f9a9b2e8036074ad578f49db285e4dfa51a77f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Wed, 18 Sep 2019 23:19:36 +0200 Subject: [PATCH] Revert "build_toolchains: Stop building arm64 toolchains" This reverts commit ecc6d6bd3e38de4a7324ec5b2927bd6ed0de092d. --- build_library/toolchain_util.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_library/toolchain_util.sh b/build_library/toolchain_util.sh index 293d9656af..5ab2c6e470 100644 --- a/build_library/toolchain_util.sh +++ b/build_library/toolchain_util.sh @@ -15,6 +15,7 @@ TOOLCHAIN_PKGS=( # compiler to build a full native toolchain. Packages are not uploaded. declare -A CROSS_PROFILES CROSS_PROFILES["x86_64-cros-linux-gnu"]="coreos:coreos/amd64/generic" +CROSS_PROFILES["aarch64-cros-linux-gnu"]="coreos:coreos/arm64/generic" # Map board names to CHOSTs and portage profiles. This is the # definitive list, there is assorted code new and old that either @@ -23,6 +24,9 @@ declare -A BOARD_CHOSTS BOARD_PROFILES BOARD_CHOSTS["amd64-usr"]="x86_64-cros-linux-gnu" BOARD_PROFILES["amd64-usr"]="coreos:coreos/amd64/generic" +BOARD_CHOSTS["arm64-usr"]="aarch64-cros-linux-gnu" +BOARD_PROFILES["arm64-usr"]="coreos:coreos/arm64/generic" + BOARD_NAMES=( "${!BOARD_CHOSTS[@]}" ) # Declare the above globals as read-only to avoid accidental conflicts. @@ -39,6 +43,7 @@ declare -r \ # Usage: get_portage_arch chost get_portage_arch() { case "$1" in + aarch64*) echo arm64;; alpha*) echo alpha;; arm*) echo arm;; hppa*) echo hppa;;