#!/bin/bash # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2021 Intel Corporation. All rights reserved. # stop on most errors set -e SOF_TOP=$(cd "$(dirname "$0")" && cd .. && pwd) SUPPORTED_PLATFORMS=(apl cnl icl tgl-h imx8) # Default value, can (and sometimes must) be overridden with -p WEST_TOP="${SOF_TOP}"/zephyrproject BUILD_JOBS=$(nproc --all) RIMAGE_KEY=modules/audio/sof/keys/otc_private_key.pem PLATFORMS=() die() { >&2 printf '%s ERROR: ' "$0" # We want die() to be usable exactly like printf # shellcheck disable=SC2059 >&2 printf "$@" >&2 printf '\n' exit 1 } print_usage() { cat <