Skip to content

Commit

Permalink
Enbaling iPXE build on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Shaposhnik <rvs@zededa.com>
  • Loading branch information
rvs committed Jan 14, 2021
1 parent 7f7c3d3 commit f8eb008
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/ipxe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ COPY *patch /tmp/
# hadolint ignore=DL4006
RUN cat /tmp/*patch | patch -p1

RUN make -j "$(getconf _NPROCESSORS_ONLN)" -C src DOWNLOAD_PROTO_HTTPS=1 EMBED=embedded.cfg \
bin-x86_64-efi/ipxe.efi bin/ipxe.dsk bin/ipxe.lkrn bin/undionly.kpxe
# bin/ipxe.iso
ENV TARGET_x86_64 bin-x86_64-efi/ipxe.efi bin/ipxe.dsk bin/ipxe.lkrn bin/undionly.kpxe
ENV TARGET_aarch64 bin-arm64-efi/ipxe.efi

RUN eval make -j "$(getconf _NPROCESSORS_ONLN)" -C src DOWNLOAD_PROTO_HTTPS=1 EMBED=embedded.cfg \$TARGET_`uname -m`
RUN mv /ws/src/bin/undionly.kpxe /ws/src/bin/ipxe.undionly 2>/dev/null || :
RUN rm /ws/src/bin*/*.*.*

FROM scratch
COPY --from=build /ws/src/bin*/ipxe.* /ws/src/bin/undionly.kpxe /
COPY --from=build /ws/src/bin*/ipxe.* /

0 comments on commit f8eb008

Please sign in to comment.