#!/bin/bash # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation. All rights reserved. # stop on most errors set -e SUPPORTED_PLATFORMS=(byt cht bdw hsw apl skl kbl cnl sue icl jsl \ imx8 imx8x imx8m tgl) BUILD_ROM=no BUILD_DEBUG=no BUILD_FORCE_UP=no BUILD_JOBS=$(nproc --all) BUILD_VERBOSE= PLATFORMS=() PATH=$pwd/local/bin:$PATH pwd=$(pwd) print_usage() { cat <> override.config fi if [[ "x$BUILD_ROM" == "xyes" && "x$HAVE_ROM" == "xyes" ]] then echo "CONFIG_BUILD_VM_ROM=y" >> override.config fi # override default ARCH if BUILD_FORCE_UP is set if [ "x$BUILD_FORCE_UP" == "xyes" ] then echo "Force building UP(xtensa)..." echo "CONFIG_SMP=n" >> override.config fi if [ -e override.config ] then make overrideconfig fi if [ 'tgl' != "${platform}" ]; then make bin -j "${BUILD_JOBS}" ${BUILD_VERBOSE} else # FIXME: finish gcc support for tgl make sof -j "${BUILD_JOBS}" ${BUILD_VERBOSE} if [ "$BUILD_ROM" = "yes" ]; then make rom_dump ${BUILD_VERBOSE} fi fi cd "$WORKDIR" done # for platform in ... # list all the images ls -l build_*/*.ri build_*/src/arch/xtensa/rom*.bin || true ls -l build_*/sof