# toolchains.conf

# Base URL for downloading Synology Toolchains
# To see original toolchain list access https://archive.synology.com/download/ToolChain/toolchain/7.2-63134
TOOLCHAIN_BASE_URL="https://global.synologydownload.com/download/ToolChain/toolchain/7.2-72746"

# Associative arrays to store toolchain information for each architecture
declare -A TOOLCHAIN_URLS
declare -A TOOLCHAIN_FILES
declare -A TOOLCHAIN_MD5_CHECKSUMS

# Platforms list
PLATFORM_LIST=("alpine" "alpine4k" "apollolake" "armada37xx" "armada38x" "avoton" "broadwell" "broadwellnk" "broadwellnkv2" "broadwellntbap" "bromolow" "braswell" "denverton" "epyc7002" "geminilake" "grantley" "kvmx64" "monaco" "purley" "r1000" "rtd1296" "rtd1619b" "v1000")

# Toolchain information
TOOLCHAIN_URLS["alpine"]="$TOOLCHAIN_BASE_URL/Annapurna%20Alpine%20Linux%203.10.108/alpine-gcc1220_glibc236_hard-GPL.txz"
TOOLCHAIN_FILES["alpine"]="alpine-gcc1220_glibc236_hard-GPL"
TOOLCHAIN_MD5_CHECKSUMS["alpine"]="d8eeadfa7464ccaee5cc32cf155dfbda"

TOOLCHAIN_URLS["alpine4k"]="$TOOLCHAIN_BASE_URL/Annapurna%20Alpine%20Linux%203.10.108/alpine4k-gcc1220_glibc236_hard-GPL.txz"
TOOLCHAIN_FILES["alpine4k"]="alpine4k-gcc1220_glibc236_hard-GPL"
TOOLCHAIN_MD5_CHECKSUMS["alpine4k"]="eb29894eefa98b30b5807293692aa03f"

TOOLCHAIN_URLS["apollolake"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.180%20%28Apollolake%29/apollolake-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["apollolake"]="apollolake-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["apollolake"]="3dbbef8b117dbbe699cf2ff8e9e11904"

TOOLCHAIN_URLS["armada37xx"]="$TOOLCHAIN_BASE_URL/Marvell%20Armada%2037xx%20Linux%204.4.302/armada37xx-gcc1220_glibc236_armv8-GPL.txz"
TOOLCHAIN_FILES["armada37xx"]="armada37xx-gcc1220_glibc236_armv8-GPL"
TOOLCHAIN_MD5_CHECKSUMS["armada37xx"]="5fb60dccf7d7ea4864f1276bf221828d"

TOOLCHAIN_URLS["armada38x"]="$TOOLCHAIN_BASE_URL/Marvell%20Armada%2038x%20Linux%203.10.108/armada38x-gcc1220_glibc236_hard-GPL.txz"
TOOLCHAIN_FILES["armada38x"]="armada38x-gcc1220_glibc236_hard-GPL"
TOOLCHAIN_MD5_CHECKSUMS["armada38x"]="5891351682940baea9cc745916a6cd58"

TOOLCHAIN_URLS["avoton"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%203.10.108%20%28Avoton%29/avoton-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["avoton"]="avoton-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["avoton"]="2dfa97024ca647712fb4131a1b36c7db"

TOOLCHAIN_URLS["braswell"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%203.10.108%20%28Braswell%29/braswell-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["braswell"]="braswell-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["braswell"]="62d89ff557f06566a6a75dba501ec84c"

TOOLCHAIN_URLS["broadwell"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.180%20%28Broadwell%29/broadwell-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["broadwell"]="broadwell-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["broadwell"]="170844b7815bb65b034ebe88aef9f5d8"

TOOLCHAIN_URLS["broadwellnk"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28Broadwellnk%29/broadwellnk-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["broadwellnk"]="broadwellnk-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["broadwellnk"]="9eb4d301b87fb1a4898fb415a3dfc673"

TOOLCHAIN_URLS["broadwellnkv2"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28Broadwellnkv2%29/broadwellnkv2-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["broadwellnkv2"]="broadwellnkv2-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["broadwellnkv2"]="92a970128cf24b6383d37be7c03e0a5f"

TOOLCHAIN_URLS["broadwellntbap"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28Broadwellntbap%29/broadwellntbap-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["broadwellntbap"]="broadwellntbap-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["broadwellntbap"]="9ab356d43d7f15c39862b8b377fbd62b"

TOOLCHAIN_URLS["bromolow"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20linux%203.10.108%20%28Bromolow%29/bromolow-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["bromolow"]="bromolow-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["bromolow"]="25e567a034044e5ad78b6212c561438a"

TOOLCHAIN_URLS["denverton"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28Denverton%29/denverton-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["denverton"]="denverton-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["denverton"]="1c621992c61e400fe310459d66f0d01f"

TOOLCHAIN_URLS["epyc7002"]="$TOOLCHAIN_BASE_URL/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["epyc7002"]="epyc7002-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["epyc7002"]="6996a1fa9a0901e011d95dcf733fd395"

TOOLCHAIN_URLS["geminilake"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28GeminiLake%29/geminilake-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["geminilake"]="geminilake-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["geminilake"]="224104f875f50e8942edb467a23ba9ac"

TOOLCHAIN_URLS["grantley"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%203.10.108%20%28Grantley%29/grantley-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["grantley"]="grantley-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["grantley"]="feedbd57a987f08c2b5a1d897d1f5999"

TOOLCHAIN_URLS["kvmx64"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28Kvmx64%29/kvmx64-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["kvmx64"]="kvmx64-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["kvmx64"]="44876e1583a2fbc4f297f93ef1d5808a"

TOOLCHAIN_URLS["monaco"]="$TOOLCHAIN_BASE_URL/STMicroelectronics%20Monaco%20Linux%203.10.108/monaco-gcc1220_glibc236_hard-GPL.txz"
TOOLCHAIN_FILES["monaco"]="monaco-gcc1220_glibc236_armv8-GPL"
TOOLCHAIN_MD5_CHECKSUMS["monaco"]="a525ee451c1ba4232d6095ba8125fd92"

TOOLCHAIN_URLS["purley"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28Purley%29/purley-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["purley"]="purley-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["purley"]="365ce203bc21ad4235cd3b60fd1963e6"

TOOLCHAIN_URLS["r1000"]="$TOOLCHAIN_BASE_URL/AMD%20x86%20Linux%204.4.302%20%28r1000%29/r1000-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["r1000"]="r1000-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["r1000"]="a06941ceaaaa7646e273b9c6a07625ab"

TOOLCHAIN_URLS["rtd1296"]="$TOOLCHAIN_BASE_URL/Realtek%20RTD129x%20Linux%204.4.302/rtd1296-gcc1220_glibc236_armv8-GPL.txz"
TOOLCHAIN_FILES["rtd1296"]="rtd1296-gcc1220_glibc236_armv8-GPL"
TOOLCHAIN_MD5_CHECKSUMS["rtd1296"]="8f466e2d7a05f09ceea7abd97f450b56"

TOOLCHAIN_URLS["rtd1619b"]="$TOOLCHAIN_BASE_URL/Realtek%20RTD16xxb%20Linux%205.10.55/rtd1619b-gcc1220_glibc236_armv8-GPL.txz"
TOOLCHAIN_FILES["rtd1619b"]="rtd1619b-gcc1220_glibc236_armv8-GPL"
TOOLCHAIN_MD5_CHECKSUMS["rtd1619b"]="f2d2db6795ff0465a827b19b28797bf1"

TOOLCHAIN_URLS["v1000"]="$TOOLCHAIN_BASE_URL/Intel%20x86%20Linux%204.4.302%20%28V1000%29/v1000-gcc1220_glibc236_x86_64-GPL.txz"
TOOLCHAIN_FILES["v1000"]="v1000-gcc1220_glibc236_x86_64-GPL"
TOOLCHAIN_MD5_CHECKSUMS["v1000"]="091301936a9bfbc0ec8dbcfc7a740818"