[qemu] add ninja to the build image (#4557)

As of QEMU's 09e93326e4 ("build: replace ninjatool with ninja"), QEMU
now requires ninja instead of ninjatool for builds.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
This commit is contained in:
Alexander Bulekov 2020-10-21 13:43:56 -04:00 committed by GitHub
parent 88fa1b2da7
commit 4bf509a916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev patchelf
RUN apt-get update && apt-get install -y make autoconf automake libtool \
libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev patchelf wget
# Ninja in the apt repos is too old. Get it directly from github
RUN wget https://github.com/ninja-build/ninja/releases/latest/download/ninja-linux.zip \
&& unzip ninja-linux.zip \
&& rm ninja-linux.zip \
&& mv ninja /usr/bin/ninja
RUN git clone --depth 1 https://git.qemu.org/git/qemu.git qemu
WORKDIR qemu
RUN cp scripts/oss-fuzz/build.sh $SRC