2014-09-14 18:40:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
OUTPUT_DIR=sandbox
|
|
|
|
|
|
|
|
fail() {
|
|
|
|
echo "Test failed: $1"
|
|
|
|
if [ -n ${tmp} ]; then
|
|
|
|
rm ${tmp}
|
|
|
|
fi
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
build_uboot() {
|
|
|
|
echo "Build sandbox"
|
|
|
|
OPTS="O=${OUTPUT_DIR} $1"
|
2020-01-27 06:59:46 +00:00
|
|
|
NUM_CPUS=$(nproc)
|
2014-09-14 18:40:17 +00:00
|
|
|
echo ${OPTS}
|
|
|
|
make ${OPTS} sandbox_config
|
|
|
|
make ${OPTS} -s -j${NUM_CPUS}
|
|
|
|
}
|