Lines Matching +full:xtensa +full:- +full:build +full:- +full:all
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2020 Intel Corporation. All rights reserved.
6 # This script configures & performs build for clang's static analyzer.
8 set -eu
11 echo "Usage: $0 -t <toolchain> -c <config> -r <root_dir> [options]"
12 echo " -t Toolchain's name."
13 echo " -c Name of defconfig."
14 echo " -r Xtensa root dir."
15 echo " [-j n] Set number of make build jobs."
16 echo " [-v] Verbose output."
18 echo " $0 -t xt -c apollolake \\"
19 echo " -r \$CONFIG_PATH/xtensa-elf"
20 echo " $0 -t xtensa-cnl-elf -c cannonlake \\"
21 echo " -r \`pwd\`/../xtensa-cnl-elf"
24 if [ "$#" -eq 0 ]
33 JOBS=$(nproc --all)
53 VERBOSE_SCAN_BUILD="-v -v"
65 PROXY_COMPILER=$SCRIPT_DIR/proxy-gcc.sh
69 rm -fr $BUILD_DIR
73 scan-build $VERBOSE_SCAN_BUILD cmake \
74 -DBUILD_CLANG_SCAN=ON \
75 -DTOOLCHAIN=$TOOLCHAIN \
76 -DROOT_DIR=$ROOT_DIR \
77 -DCMAKE_VERBOSE_MAKEFILE=$VERBOSE_CMAKE \
84 COMPILER=$TOOLCHAIN-xcc
86 COMPILER=$TOOLCHAIN-gcc
89 # There are flags that are needed by clang but don't work for xtensa compiler.
90 # However clang tries to pass all flags to original compiler, so we need to put
92 PROXY_CC=$COMPILER PROXY_REMOVE_FLAGS=-m32 \
93 scan-build $VERBOSE_SCAN_BUILD --use-cc="$PROXY_COMPILER" -o report \
94 make sof -j$JOBS