summary refs log tree commit diff
path: root/kokoro
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2019-01-22 02:33:21 +0000
committerchrome-bot <chrome-bot@chromium.org>2019-01-23 10:47:34 -0800
commit448e20b2b0a8f25755234df634dc84e49d56100a (patch)
tree9b09239656538347c451feb36514c76d73889171 /kokoro
parent2c7e88199ea4f7e8a9486c1c76ecaeababad4d49 (diff)
downloadcrosvm-448e20b2b0a8f25755234df634dc84e49d56100a.tar
crosvm-448e20b2b0a8f25755234df634dc84e49d56100a.tar.gz
crosvm-448e20b2b0a8f25755234df634dc84e49d56100a.tar.bz2
crosvm-448e20b2b0a8f25755234df634dc84e49d56100a.tar.lz
crosvm-448e20b2b0a8f25755234df634dc84e49d56100a.tar.xz
crosvm-448e20b2b0a8f25755234df634dc84e49d56100a.tar.zst
crosvm-448e20b2b0a8f25755234df634dc84e49d56100a.zip
kokoro: Add adhd repo
A future change will allow crosvm to play audio through cras. To do that
it needs to use some crates that live in the adhd repository. Add the
repository to the kokoro image at a path where Cargo can find the
crates.

Change-Id: I1542090ba0db6fd0f3ac60dcc2e7bb35502a4944
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1429311
Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Diffstat (limited to 'kokoro')
-rw-r--r--kokoro/Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/kokoro/Dockerfile b/kokoro/Dockerfile
index 44c63aa..311b134 100644
--- a/kokoro/Dockerfile
+++ b/kokoro/Dockerfile
@@ -109,6 +109,14 @@ RUN rm -r /scratch /usr/bin/meson
 # The manual installation of shared objects requires an ld.so.cache refresh.
 RUN ldconfig
 
+# Pull down repositories that crosvm depends on to cros checkout-like locations.
+ENV CROS_ROOT=/
+ENV THIRD_PARTY_ROOT=$CROS_ROOT/third_party
+RUN mkdir -p $THIRD_PARTY_ROOT
+
+# Pull the cras library for audio access.
+RUN git clone https://chromium.googlesource.com/chromiumos/third_party/adhd $THIRD_PARTY_ROOT/adhd
+
 # The /build directory is used so that the bind mounted /src volume does not get scribbled on.
 ENV CARGO_TARGET_DIR=/build
 RUN mkdir -p $CARGO_TARGET_DIR