All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Dockerfile: Build coreboot from source
@ 2024-02-13 14:39 Tom Rini
  2024-02-13 14:39 ` [PATCH 2/3] CI: Switch to using coreboot from our image Tom Rini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tom Rini @ 2024-02-13 14:39 UTC (permalink / raw)
  To: u-boot

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 <trini@konsulko.com>
---
 tools/docker/Dockerfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 6122776bc64d..3d044657406e 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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-28 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 14:39 [PATCH 1/3] Dockerfile: Build coreboot from source Tom Rini
2024-02-13 14:39 ` [PATCH 2/3] CI: Switch to using coreboot from our image Tom Rini
2024-02-13 14:39 ` [PATCH 3/3] CI: Move to latest container image Tom Rini
2024-02-13 15:31 ` [PATCH 1/3] Dockerfile: Build coreboot from source Tom Rini
2024-02-28 16:21 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.