summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2021-02-15 16:02:01 +0100
committerMartin Roth <martinroth@google.com>2021-02-16 23:39:09 +0000
commit86e9b41ac239513f46046bbe6af6e9344a6699ff (patch)
tree0381587c530b3af57bd33ed28f9ef4fc38aebd0f
parent5c5f211b5b6e042637cf0256d2040ea66dadc8e9 (diff)
docker/coreboot-jenkins-node: Add more tools for zephyr
To build a CrOS-style zephyr, we need a couple of u-boot tools, so add them here instead of rebuilding them on every zephyr build (which is also harder to get right because search paths are no strength of python) Change-Id: Ib95fcb644ac87c5f35f2228fe081c922452b5213 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50744 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--util/docker/coreboot-jenkins-node/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/util/docker/coreboot-jenkins-node/Dockerfile b/util/docker/coreboot-jenkins-node/Dockerfile
index a66943984b..19670b4a0d 100644
--- a/util/docker/coreboot-jenkins-node/Dockerfile
+++ b/util/docker/coreboot-jenkins-node/Dockerfile
@@ -61,6 +61,21 @@ RUN gcc -o /usr/sbin/encapsulate /tmp/encapsulate.c && \
COPY --from=zephyr-sdk /opt/zephyr-sdk /opt/zephyr-sdk
+RUN apt-get update && \
+ apt-get install -y python3-pip pykwalify python3-yaml \
+ python3-pyelftools python3-jsonschema python3-colorama \
+ python3-pyrsistent python3-setuptools swig && \
+ apt-get clean
+
+RUN mkdir /tmp/b && cd /tmp/b && \
+ git clone https://git.kernel.org/pub/scm/utils/dtc/dtc.git dtc && \
+ git clone https://chromium.googlesource.com/chromiumos/third_party/u-boot -b chromeos-v2020.10-rc1 u-boot && \
+ (cd dtc && make install_pylibfdt PREFIX=/usr/local) && \
+ (cd u-boot/tools/dtoc && python3 setup.py install) && \
+ (cd u-boot/tools/patman && python3 setup.py install) && \
+ (cd u-boot/tools/binman && python3 setup.py install) && \
+ cd / && rm -rf /tmp/b
+
VOLUME /data/cache
ENTRYPOINT mount /cb-build && \
mount /home/coreboot/node-root/workspace && \