2016-01-12 17:39:23 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-10-09 21:29:42 +08:00
|
|
|
set -e
|
|
|
|
. .coverity.conf || exit 1
|
2016-01-12 17:39:23 +08:00
|
|
|
|
2019-10-09 21:29:42 +08:00
|
|
|
pre_build_hook
|
2016-10-05 23:58:11 +08:00
|
|
|
|
2019-10-09 21:29:42 +08:00
|
|
|
rm -rf "$COVDIR"
|
|
|
|
mkdir "$COVDIR"
|
|
|
|
make clean
|
|
|
|
$COVBUILD make -j 4 bootrom
|
|
|
|
$COVBUILD make -j 4 fullimage
|
|
|
|
$COVBUILD make -j 4 mfkey
|
|
|
|
$COVBUILD make -j 4 nonce2key
|
|
|
|
$COVBUILD make -j 4 fpga_compress
|
|
|
|
# make sure to do client after ARM because Coverity retains one build info per file
|
|
|
|
# and we want the client-side of the common/ analysis
|
|
|
|
$COVBUILD make -j 4 client
|
|
|
|
|
|
|
|
post_build_hook
|