Skip to content

Commit

Permalink
Build arm64 ipxe
Browse files Browse the repository at this point in the history
This requires having a cross compiler available (pkg
gcc-aarch64-linux-gnu on debian).

THis is in preperation for adding some amount of raspberry pi 4 support.
  • Loading branch information
euank committed Oct 5, 2020
1 parent 66e5fba commit 71511b3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 26 deletions.
24 changes: 15 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ ci-config:
.PHONY: update-ipxe
update-ipxe:
$(MAKE) -C third_party/ipxe/src \
EMBED=$(HERE)/pixiecore/boot.ipxe \
bin/ipxe.pxe \
bin/undionly.kpxe \
bin-x86_64-efi/ipxe.efi \
bin-i386-efi/ipxe.efi
EMBED=$(HERE)/pixiecore/boot.ipxe \
bin/ipxe.pxe \
bin/undionly.kpxe \
bin-x86_64-efi/ipxe.efi \
bin-i386-efi/ipxe.efi
# Cross compile for aarch64
$(MAKE) -C third_party/ipxe/src \
CROSS=aarch64-linux-gnu- \
EMBED=$(HERE)/pixiecore/boot.ipxe \
bin-arm64-efi/ipxe.efi
go-bindata -o out/ipxe/bindata.go -pkg ipxe -nometadata -nomemcopy \
third_party/ipxe/src/bin/ipxe.pxe \
third_party/ipxe/src/bin/undionly.kpxe \
third_party/ipxe/src/bin-x86_64-efi/ipxe.efi \
third_party/ipxe/src/bin-i386-efi/ipxe.efi
third_party/ipxe/src/bin/ipxe.pxe \
third_party/ipxe/src/bin/undionly.kpxe \
third_party/ipxe/src/bin-x86_64-efi/ipxe.efi \
third_party/ipxe/src/bin-i386-efi/ipxe.efi \
third_party/ipxe/src/bin-arm64-efi/ipxe.efi
gofmt -s -w out/ipxe/bindata.go
50 changes: 33 additions & 17 deletions out/ipxe/bindata.go

Large diffs are not rendered by default.

0 comments on commit 71511b3

Please sign in to comment.