[PATCH 1/3] Dockerfile: Build coreboot from source
Tom Rini
trini at konsulko.com
Tue Feb 13 16:31:31 CET 2024
On Tue, Feb 13, 2024 at 09:39:26AM -0500, Tom Rini wrote:
> 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 at 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/
And I forgot an "rm -rf /tmp/coreboot-4.22.01" at the end here which
I'll add while merging if there's no further comments.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240213/08768812/attachment.sig>
More information about the U-Boot
mailing list