blob: 36fd019dc433a1b04d32c3dbb17cb6a9e0c63442 [file] [log] [blame]
# Copyright 2024 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# @ECLASS: coreboot-sdk-ap-dependencies.eclass
# @BLURB: Common dependency declaration for the AP
# @DESCRIPTION:
# coreboot-sdk uses the subtool. A few AP ebuilds use the same versions of
# the subtool toolchains. Consolidate them all into a single place.
if [[ -z "${_ECLASS_COREBOOT_SDK_AP_DEPS}" ]]; then
_ECLASS_COREBOOT_SDK_AP_DEPS=1
# Check for EAPI 7+.
case "${EAPI:-0}" in
[0123456]) die "unsupported EAPI (${EAPI}) in eclass (${ECLASS})" ;;
esac
# @ECLASS-VARIABLE: COREBOOT_SDK_VERSIONS
# @DESCRIPTION:
# Associative array of the architectures and their respective versions
# that should be used by ebuilds inheriting from this eclass.
declare -gA COREBOOT_SDK_VERSIONS=(
[aarch64-elf]="11.3.0-r2/7a7d0263efa0f77b3335dbd8398970906e3007cb"
[arm-eabi]="11.3.0-r2/fab0b0cdb09e4b603baaeb22a3e426d9bc0693da"
[i386-elf]="11.3.0-r2/cc719670413bdcf8089775f0aca0506d21a60282"
[iasl]="11.3.0-r2/a59cd53c87d0d4e57386c070e9f9a2f1d1cf9b6f"
[x86_64-elf]="11.3.0-r2/df64df9a5312fcc86809b63bf4f64ca3175af334"
)
# @ECLASS-VARIABLE: COREBOOT_SDK_BUCKET_OVERRIDES
# @DESCRIPTION:
# Associative array of the architectures and their respective override
# GCS buckets to be used.
#
# To use a local build and/or point the ebuild to a different bucket for
# a binary, uncomment the below array and add an entry with the
# architecture/bucket name key/value pair.
#
# For example:
# [i386-elf]="chromeos-throw-away-bucket"
#
# NOTE: DO NOT SUBMIT THIS ARRAY
# Merging any changes to the below array will cause production builds to use
# an unverified and unmanaged toolchain.
#declare -gA COREBOOT_SDK_BUCKET_OVERRIDES=(
#)
fi
OSZAR »