diff options
author | Paolo Bonzini | 2022-07-20 10:40:06 +0200 |
---|---|---|
committer | Paolo Bonzini | 2022-07-22 19:01:44 +0200 |
commit | d5b50236915be6f48e9ade9152273f0e902c63be (patch) | |
tree | 28eddeac72f25f904b80aeb027c224da478ef40f /scripts | |
parent | accel/kvm: Avoid Coverity warning in query_stats() (diff) | |
download | qemu-d5b50236915be6f48e9ade9152273f0e902c63be.tar.gz qemu-d5b50236915be6f48e9ade9152273f0e902c63be.tar.xz qemu-d5b50236915be6f48e9ade9152273f0e902c63be.zip |
oss-fuzz: remove binaries from qemu-bundle tree
oss-fuzz is finding possible fuzzing targets even under qemu-bundle/.../bin, but they
cannot be used because the required shared libraries are missing. Since the
fuzzing targets are already placed manually in $OUT, the bindir and libexecdir
subtrees are not needed; remove them.
Cc: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oss-fuzz/build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/oss-fuzz/build.sh b/scripts/oss-fuzz/build.sh index 2656a89aea..5ee9141e3e 100755 --- a/scripts/oss-fuzz/build.sh +++ b/scripts/oss-fuzz/build.sh @@ -87,8 +87,10 @@ if [ "$GITLAB_CI" != "true" ]; then make "-j$(nproc)" qemu-fuzz-i386 V=1 fi -# Prepare a preinstalled tree +# Place data files in the preinstall tree make install DESTDIR=$DEST_DIR/qemu-bundle +rm -rf $DEST_DIR/qemu-bundle/opt/qemu-oss-fuzz/bin +rm -rf $DEST_DIR/qemu-bundle/opt/qemu-oss-fuzz/libexec targets=$(./qemu-fuzz-i386 | awk '$1 ~ /\*/ {print $2}') base_copy="$DEST_DIR/qemu-fuzz-i386-target-$(echo "$targets" | head -n 1)" |