Files
dasharo-sdk/Dockerfile
T
Piotr Król e351cb673e Dockerfile: add guilt and sort packages
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2025-03-28 09:54:43 +01:00

78 lines
2.1 KiB
Docker

FROM coreboot/coreboot-sdk:2024-05-20_b4949d3de5
USER root
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
gpg \
guilt \
imagemagick \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-shape0 \
libxcb-sync1 \
libxcb-xfixes0 \
libxcb-xinerama0 \
libxcb-xkb1 \
libxkbcommon-x11-0 \
unzip \
uuid-runtime \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN wget https://github.com/LongSoft/UEFITool/releases/download/A68/UEFIExtract_NE_A68_x64_linux.zip && \
unzip UEFIExtract_NE_A68_x64_linux.zip && \
mv uefiextract /usr/local/bin && \
rm UEFIExtract_NE_A68_x64_linux.zip
# We need the latest smmstoretool changes to be included,
# not part of the release yet
RUN git clone https://github.com/coreboot/coreboot.git && \
cd coreboot && \
git checkout -f 24.08 && \
make -C util/cbfstool && \
make -C util/cbfstool install && \
export USE_FLASHROM=0 && \
make -C 3rdparty/vboot && \
make -C 3rdparty/vboot install && \
mkdir /vboot && \
cp -r 3rdparty/vboot/scripts /vboot/ && \
unset USE_FLASHROM && \
make -C util/smmstoretool && \
make -C util/smmstoretool install && \
make -C util/ifdtool && \
make -C util/ifdtool install && \
cd .. && \
rm -rf coreboot
RUN git clone https://github.com/wolfSSL/wolfssl.git -b v5.7.0-stable --depth=1 && \
cd wolfssl && \
./autogen.sh && \
./configure --libdir /lib/x86_64-linux-gnu/ && \
make && \
make install && \
cd .. && \
rm -rf wolfssl
# nvmtool is needed for DCU
RUN rm -rf coreboot && \
git clone https://review.coreboot.org/coreboot.git && \
cd coreboot && \
git fetch https://review.coreboot.org/coreboot refs/changes/29/67129/5 && \
git checkout -b change-67129 FETCH_HEAD && \
cd util/nvmtool && \
make && \
cp nvm /usr/local/bin/nvm && \
cd ../../.. && \
rm -rf coreboot
# Needed for vboot futility to sign images with VBOOT_CBFS_INTEGRATION
ENV CBFSTOOL=/usr/local/bin/cbfstool
USER coreboot