Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .circleci/images/uefipayload-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,28 @@ RUN git clone --branch uefipayload-2024 --recursive https://github.com/linuxboot
RUN apt-get install -y --no-install-recommends \
make \
python3 \
python3-dev \
python3-pip \
gcc \
g++ \
uuid-dev \
nasm \
bash \
iasl && \
rm -rf /var/lib/apt/lists/*
uuid-dev \
nasm \
bash \
libfdt-dev \
swig \
iasl;

RUN pip3 install --break-system-packages pefile pylibfdt

SHELL ["/bin/bash", "-c"]
RUN cd uefipayload; \
source ./edksetup.sh; \
make -C BaseTools; \
build -a X64 -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG \
-t GCC5 -D BOOTLOADER=LINUXBOOT -D DISABLE_MMX_SSE=true;
-t GCC5 -D BOOTLOADER=LINUXBOOT -D DISABLE_MMX_SSE=true; \
cp /uefipayload/Build/UefiPayloadPkgX64/DEBUG_GCC5/FV/UEFIPAYLOAD.fd /UEFIPAYLOAD.fd; \
python3 UefiPayloadPkg/UniversalPayloadBuild.py -t GCC5 --Fit;

FROM scratch
COPY --from=base /uefipayload/Build/UefiPayloadPkgX64/DEBUG_GCC5/FV/UEFIPAYLOAD.fd /UEFIPAYLOAD.fd
COPY --from=base /UEFIPAYLOAD.fd /UEFIPAYLOAD.fd
COPY --from=base /uefipayload/Build/UefiPayloadPkgX64/UniversalPayload.fit /UEFIPayload.fit