sof/scripts/build-tools.sh

18 lines
206 B
Bash
Executable File

#!/bin/bash
# fail immediately on any errors
set -e
cd tools
rm -rf build_tools
mkdir build_tools
cd build_tools
cmake ..
make -j$(nproc)
if [[ "$1" == "-t" ]]; then
make tests -j$(nproc)
fi
cd ../../