1#!/bin/bash -eux 2# Copyright 2016 The Chromium Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5# 6# Builds fuzzers from within a container into /out/ directory. 7# Expects /src/tpm2 to contain tpm2 checkout. 8 9mkdir $WORK/tpm2 10cd $SRC/tpm2 11make V=1 obj=$WORK/tpm2 $WORK/tpm2/libtpm2.a 12 13$CXX $CXXFLAGS $FUZZER_LDFLAGS -std=c++11 \ 14 $SRC/tpm2/fuzz/execute-command.cc -o $OUT/tpm2_execute_command_fuzzer \ 15 -I $SRC/tpm2 \ 16 $WORK/tpm2/libtpm2.a \ 17 /usr/lib/x86_64-linux-gnu/libcrypto.a /usr/lib/x86_64-linux-gnu/libssl.a \ 18 -lFuzzingEngine 19