]> Git Repo - qemu.git/commitdiff
oss-fuzz: remove binaries from qemu-bundle tree
authorPaolo Bonzini <[email protected]>
Wed, 20 Jul 2022 08:40:06 +0000 (10:40 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 22 Jul 2022 17:01:44 +0000 (19:01 +0200)
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
scripts/oss-fuzz/build.sh

index 2656a89aeaed67b3a44d381c412663720188ade1..5ee9141e3e48394e63ce281a822d0e0147aa60a0 100755 (executable)
@@ -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)"
This page took 0.02703 seconds and 4 git commands to generate.