blob: 904d579b7bfefcc5cbb1bba5afe61e396a26f472 [file] [log] [blame]
Simon Glass129acd42014-09-14 12:40:17 -06001#!/bin/sh
2
3OUTPUT_DIR=sandbox
4
5fail() {
6 echo "Test failed: $1"
7 if [ -n ${tmp} ]; then
8 rm ${tmp}
9 fi
10 exit 1
11}
12
13build_uboot() {
14 echo "Build sandbox"
15 OPTS="O=${OUTPUT_DIR} $1"
Heinrich Schuchardt84f04152020-01-27 07:59:46 +010016 NUM_CPUS=$(nproc)
Simon Glass129acd42014-09-14 12:40:17 -060017 echo ${OPTS}
18 make ${OPTS} sandbox_config
19 make ${OPTS} -s -j${NUM_CPUS}
20}