mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-13 00:17:23 +00:00
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 <trini@konsulko.com>
This commit is contained in:
parent
ea7d3eec1e
commit
f382050896
1 changed files with 11 additions and 0 deletions
|
@ -231,6 +231,17 @@ RUN mkdir /tmp/trace && \
|
||||||
sudo make install && \
|
sudo make install && \
|
||||||
rm -rf /tmp/trace
|
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
|
# Create our user/group
|
||||||
RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
|
RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
|
||||||
RUN useradd -m -U uboot
|
RUN useradd -m -U uboot
|
||||||
|
|
Loading…
Reference in a new issue