diff options
Diffstat (limited to 'util/docker')
-rw-r--r-- | util/docker/coreboot-sdk/Dockerfile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/util/docker/coreboot-sdk/Dockerfile b/util/docker/coreboot-sdk/Dockerfile index 808f2af8dd..64854a4132 100644 --- a/util/docker/coreboot-sdk/Dockerfile +++ b/util/docker/coreboot-sdk/Dockerfile @@ -12,7 +12,7 @@ # is used to identify this docker image. # DOCKER_COMMIT is the coreboot Commit-ID to build the toolchain from. -FROM debian:sid +FROM debian:sid AS coreboot-sdk MAINTAINER Martin Roth <martin@coreboot.org> RUN \ @@ -104,13 +104,12 @@ RUN mkdir /home/coreboot/.ccache && \ echo "export SDK_VERSION={{SDK_VERSION}}" >> /home/coreboot/.bashrc && \ echo "export SDK_COMMIT={{DOCKER_COMMIT}}" >> /home/coreboot/.bashrc -VOLUME /home/coreboot/.ccache - ENV PATH $PATH:/opt/xgcc/bin ENV SDK_VERSION={{SDK_VERSION}} ENV SDK_COMMIT={{DOCKER_COMMIT}} USER coreboot +FROM coreboot-sdk # Test the built image RUN mkdir -p /tmp/work && \ cd /tmp/work && \ @@ -124,19 +123,29 @@ RUN mkdir -p /tmp/work && \ make -C em100 && \ git clone https://review.coreboot.org/coreboot.git && \ (cd coreboot && git submodule update --init --checkout ) && \ - make -C coreboot CPUS=$(nproc) test-abuild && \ - \ + make -C coreboot CPUS=$(nproc) test-abuild + +RUN \ + cd /tmp/work && \ make -C coreboot olddefconfig && \ make -C coreboot all -j && \ make -C coreboot printall && \ make -C coreboot filelist && \ make -C coreboot ctags-project && \ - make -C coreboot cscope-project && \ - \ - make -C coreboot doxygen -j && \ + make -C coreboot cscope-project + +RUN \ + cd /tmp/work && \ + make -C coreboot doxygen -j + +RUN \ + cd /tmp/work && \ make -C coreboot test-payloads&& \ make -C coreboot test-tools -j && \ make -C coreboot test-lint -j && \ make -C coreboot test-cleanup -j && \ cd && \ rm -rf /tmp/work/ + +FROM coreboot-sdk +VOLUME /home/coreboot/.ccache |