File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 1
1
2
2
COVTOKEN=aAbBcCdDeEfFgGhHiIjJkK
3
3
# Toolchain available at https://scan.coverity.com/download
4
- COVBINDIR="/opt/cov-analysis-linux64-2019.03 /bin"
4
+ COVBINDIR="/opt/cov-analysis-linux64-2020.09 /bin"
5
5
# Nickname included in scan description:
6
6
NICKNAME=myself
7
- # cov can't read gcov from gcc > 7
8
- HOSTCC=gcc-7
9
- HOSTCXX=g++-7
10
- HOSTLD=g++-7
7
+ HOSTCC=gcc-10
8
+ HOSTCXX=g++-10
9
+ HOSTLD=g++-10
11
10
12
11
# Do not change it:
13
12
COVDIR=cov-int
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ cov-build --dir "$COVDIR" --c-coverage=gcov --no-network-coverage --no-generate-
17
17
# ########################################
18
18
# Build ARM, no test coverage #
19
19
# ########################################
20
- cov-build --dir " $COVDIR " --no-generate-build-id --force make bootrom
21
- cov-build --dir " $COVDIR " --no-generate-build-id --force make fullimage
20
+ cov-build --dir " $COVDIR " --no-generate-build-id --force make recovery
22
21
23
22
# ########################################
24
23
# Build client #
@@ -27,6 +26,7 @@ cov-build --dir "$COVDIR" --no-generate-build-id --force make fullimage
27
26
# and we want the client-side of the common/ analysis
28
27
cov-build --dir " $COVDIR " --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD mfkey
29
28
cov-build --dir " $COVDIR " --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD nonce2key
29
+ cov-build --dir " $COVDIR " --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD mf_nonce_brute
30
30
cov-build --dir " $COVDIR " --c-coverage=gcov --no-network-coverage --no-generate-build-id --force make CC=$HOSTCC CXX=$HOSTCXX LD=$HOSTLD client
31
31
32
32
# ########################################
Original file line number Diff line number Diff line change 5
5
6
6
# cov-configure --list-configured-compilers text
7
7
cov-configure --template --compiler arm-none-eabi-gcc --comptype gcc
8
- # cov can't read gcov from gcc > 7
9
8
cov-configure --template --compiler $HOSTCC --comptype gcc
Original file line number Diff line number Diff line change 1
1
2
2
## Coverity Scan Config & Run
3
- Download the Coverity Scan Self-build and install it.
3
+ Download the Coverity Scan Self-build from https://scan.coverity.com/download/ and untar it.
4
+
4
5
You will need to configure ARM-NON-EABI- Compiler for it to use:
5
6
6
- Configure
7
+ Configure
8
+
9
+ ``` sh
10
+ cov-configure --template --compiler arm-none-eabi-gcc --comptype gcc
11
+ ```
12
+ If it's in a unusual location:
7
13
8
14
``` sh
9
- cov-configure --comptype gcc --compiler /opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc
15
+ cov-configure --comptype gcc --compiler /opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc
10
16
```
11
17
12
- Run it (I'm running on Ubuntu)
18
+ Run it
13
19
14
20
``` sh
15
21
cov-build --dir cov-int make all
You can’t perform that action at this time.
0 commit comments