Lines Matching +full:- +full:doverlay
2 # Use of this source code is governed by a BSD-style license that can be
7 docker run --privileged -v /dev/log:/dev/log -v <path to crosvm>:/platform/crosvm:ro <crosvm base i…
13 RUN apt-get update && \
14 apt-get install -y --no-install-recommends ca-certificates gnupg wget && \
15 echo 'deb-src https://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list && \
17 apt-get update && \
18 apt-get build-dep -y mesa && \
19 apt-get install -y --no-install-recommends ca-certificates \
20 python3-setuptools \
21 llvm-dev \
22 libxcb-shm0-dev \
23 libelf-dev \
31 xz-utils \
32 libegl1-mesa-dev \
41 libcap-dev \
42 libdbus-1-dev \
43 libegl1-mesa-dev \
44 libepoxy-dev \
45 libfdt-dev \
46 libgl1-mesa-dev \
47 libgles2-mesa-dev \
48 libpciaccess-dev \
49 libssl-dev \
51 libusb-1.0-0-dev \
52 libwayland-dev \
55 ninja-build \
56 pkg-config \
57 protobuf-compiler \
60 python3-protobuf \
63 libunwind-dev \
64 libprotobuf-dev \
65 protobuf-compiler \
66 libprotoc-dev \
67 libdw-dev \
68 libprotobuf-dev \
69 libdocopt-dev \
71 apt-get -y build-dep intel-gpu-tools
77 RUSTFLAGS='--cfg hermetic'
81 RUN curl -LO "https://static.rust-lang.org/rustup/archive/1.22.1/x86_64-unknown-linux-gnu/rustup-in…
82 … "49c96f3f74be82f4752b8bffcf81961dea5e6e94ce1ccba94435f12e871c3bdb *rustup-init" | sha256sum -c - \
83 && chmod +x rustup-init \
84 && ./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION \
85 && rm rustup-init \
86 && chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
87 && rustup --version \
88 && cargo --version \
89 && rustc --version
92 # uses. This allows kokoro runs to avoid re-downloading the toolchain as long
98 RUN cargo install thisiznotarealpackage -q || true
104 RUN git config --global advice.detachedHead false
106 # New libepoxy and libdrm-dev requires newer meson than is in Debian stretch.
111 && rm -f /usr/bin/meson \
112 && ln -s $PWD/meson.py /usr/bin/meson
114 # The libdrm-dev in distro can be too old to build minigbm,
120 && meson build -Dlibdir=lib \
121 && ninja -C build/ install
127 && sed 's/-Wall/-Wno-maybe-uninitialized/g' -i Makefile \
128 && make CPPFLAGS="-DDRV_I915" DRV_I915=1 install -j$(nproc)
132 && mkdir -p build \
133 && meson build/ -Dprefix=/usr/local -Dlibdir=lib \
134 && ninja -C build/ install
136 # Install libtpm2 so that tpm2-sys/build.rs does not try to build it in place in
137 # the read-only source directory.
142 && make -j$(nproc) \
156 RUN mkdir -p $SYSROOT/usr/include/chromeos/dbus/trunks \
160 RUN export RUST_SYSROOT=$(rustc --print sysroot); echo $RUST_SYSROOT
161 RUN mkdir -p $RUST_SYSROOT/usr/include/chromeos/dbus/trunks \
166 RUN rm -r /scratch
172 # Pull down repositories that crosvm depends on to cros checkout-like locations.
175 RUN mkdir -p $THIRD_PARTY_ROOT
177 RUN mkdir -p $PLATFORM_ROOT
179 RUN mkdir -p $AOSP_EXTERNAL_ROOT
186 && make -j$(nproc) \
187 && cp libminijail.so /usr/lib/x86_64-linux-gnu/
199 cmake -G Ninja -B_build -DOPTION_BUILD_TESTS=FALSE && \
200 ninja -C _build install
203 RUN mkdir -p /platform/ \
205 && git clone --single-branch -b perfetto https://gitlab.freedesktop.org/tomeu/crosvm.git \
207 …&& cargo install --locked --debug --features 'default-no-sandbox wl-dmabuf gpu x virtio-gpu-next' …
210 mkdir -p /home/chronos && \
213 chown ${uid}:${gid} -R /home/chronos
216 #crony didn't install cleanly when using --include, so we add it by using an extra apt install
218 …-dri2-0,libxcb-dri3-0,libx11-xcb1,libxcb-xfixes0,libxcb-present0,libxcb-sync1,libxshmfence1,libx11…
220 RUN ulimit -n 1024 && \
221 …debootstrap --variant=minbase --components main,contrib,non-free --include=$EXTRA_PACKAGES bullse…
222 chroot /rootfs /bin/bash -c "apt install -yy gdb" && \
223 chroot /rootfs /bin/bash -c "dpkg-query -Wf '\${Installed-Size}\t\${Package}\n' | sort -n " && \
224 …chroot /rootfs /bin/bash -c "useradd -u 1001 -r -d / -s /sbin/nologin -c 'crossvm image user' perf…
226 COPY perf-testing/Docker/init.sh /rootfs/.
229 find -H | cpio -H newc -o | xz --check=crc32 -T4 - > /rootfs.cpio.gz
231 COPY perf-testing/Docker/x86_64.config /tmp/.
232 RUN mkdir -p kernel && \
233 …wget -O- https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.16.tar.xz | tar -xJ --strip-compo…
236 make -j12 vmlinux && \
239 rm -rf kernel
244 RUN git clone https://gitlab.freedesktop.org/mesa/waffle.git --single-branch --no-checkout /waffle …
247 …cmake -B_build -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Debug -Dwaffle_has_surfaceless_egl=1 …
248 make -j12 -C _build install && \
249 mkdir -p build/lib build/bin && \
250 cp _build/lib/libwaffle-1.so build/lib/libwaffle-1.so.0 && \
254 RUN git clone https://gitlab.freedesktop.org/tomeu/apitrace.git --single-branch -b perfetto --no-ch…
257 …cmake -G Ninja -B_build -H. -DCMAKE_BUILD_TYPE=Debug -DENABLE_GUI=False -DENABLE_WAFFLE=on -DWaffl…
258 ninja -C _build && \
264 ENV CFG=linux_trusty-gcc7-x86_64-release
268 python3 tools/install-build-deps && \
269 python3 tools/install-build-deps --ui && \
270 tools/gn gen out/dist --args="${GN_ARGS}" --check && \
271 tools/ninja -C out/dist traced traced_probes perfetto trace_to_text ui trace_processor_shell && \
272 mkdir -p /usr/local/lib/python3.7/site-packages && \
273 …protoc --python_out=/usr/local/lib/python3.7/site-packages protos/perfetto/trace/perfetto_trace.pr…
274 tools/gen_amalgamated --gn_args 'target_os="linux" is_debug=false'
276 RUN mkdir -p /traces-db && chown chronos:chronos /traces-db && mkdir -p /wd && chown -R chronos:chr…
278 ENV IGT_GPU_TOOLS_VERSION="igt-gpu-tools-1.25"
279 RUN git clone --single-branch -b master https://gitlab.freedesktop.org/drm/igt-gpu-tools.git && \
280 cd igt-gpu-tools && \
282 …meson build -Doverlay=disabled -Dchamelium=disabled -Dvalgrind=disabled -Dman=disabled -Ddocs=disa…
283 ninja -C build install
286 RUN git clone --single-branch -b master https://gitlab.freedesktop.org/Fahien/gfx-pps.git && \
287 cd gfx-pps && \
289 meson build -Dtest=false -Dbuildtype=debugoptimized && \
290 ninja -C build
292 COPY perf-testing/Docker/run_traces.sh /usr/local/.
293 COPY perf-testing/Docker/run_perfetto_ui.sh /usr/local/.
294 COPY perf-testing/Docker/run.sh /usr/local/.
295 COPY perf-testing/Docker/perfetto-guest.cfg /usr/local/.
296 COPY perf-testing/Docker/perfetto-host.cfg /usr/local/.
297 COPY perf-testing/Docker/merge_traces.py /usr/local/.