From: Tom Rini Date: Tue, 13 Feb 2024 14:39:26 +0000 (-0500) Subject: Dockerfile: Build coreboot from source X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=f3820508963deacd59e2f89f48b061a06d4953c8;p=u-boot.git Dockerfile: Build coreboot from source To make CI runs rely less on external servers, build a coreboot release from source and populate /opt/coreboot with the output. Signed-off-by: Tom Rini --- diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 6122776bc6..3d04465740 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -231,6 +231,17 @@ RUN mkdir /tmp/trace && \ sudo make install && \ rm -rf /tmp/trace +# Build coreboot +RUN wget -O - https://coreboot.org/releases/coreboot-4.22.01.tar.xz | tar -C /tmp -xJ && \ + cd /tmp/coreboot-4.22.01 && \ + make crossgcc-i386 CPUS=$(nproc) && \ + make -C payloads/coreinfo olddefconfig && \ + make -C payloads/coreinfo && \ + make olddefconfig && \ + make -j $(nproc) && \ + sudo mkdir /opt/coreboot && \ + sudo cp build/coreboot.rom build/cbfstool /opt/coreboot/ + # Create our user/group RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot RUN useradd -m -U uboot