Last change
on this file was 108932, checked in by vboxsync, 5 weeks ago |
libtpms-0.10.0: Applied and adjusted our libtpms changes to 0.9.6. jiraref:VBP-1320
|
-
Property svn:executable
set to
*
|
File size:
632 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | set -ex
|
---|
4 |
|
---|
5 | export CC=${CC:-clang}
|
---|
6 | export CXX=${CXX:-clang++}
|
---|
7 | export WORK=${WORK:-$(pwd)}
|
---|
8 | export OUT=${OUT:-$(pwd)/out}
|
---|
9 | CFLAGS="${CFLAGS} -fno-sanitize=bounds" # due to casts to Crypt_Int*
|
---|
10 |
|
---|
11 | mkdir -p $OUT
|
---|
12 |
|
---|
13 | build=$WORK/build
|
---|
14 | rm -rf $build
|
---|
15 | mkdir -p $build
|
---|
16 |
|
---|
17 | export LIBTPMS=$(pwd)
|
---|
18 | autoreconf -vfi
|
---|
19 |
|
---|
20 | cd $build
|
---|
21 | $LIBTPMS/configure --disable-shared --enable-static --with-openssl --with-tpm2
|
---|
22 | make -j$(nproc) && make -C tests fuzz
|
---|
23 |
|
---|
24 | zip -jqr $OUT/fuzz_seed_corpus.zip "$LIBTPMS/tests/corpus-execute-command"
|
---|
25 |
|
---|
26 | find $build -type f -executable -name "fuzz*" -exec mv {} $OUT \;
|
---|
27 | find $build -type f -name "*.options" -exec mv {} $OUT \;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.