Skip to content

Commit

Permalink
Merge pull request #351 from asdil12/prg2-ipxe
Browse files Browse the repository at this point in the history
Add script for building ipxe
  • Loading branch information
mergify[bot] authored Nov 7, 2024
2 parents 1a51388 + b583626 commit 867408e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ipxe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -e

sudo zypper -n install cross-aarch64-gcc11 xz-devel

test -d ipxe || git clone https://github.com/ipxe/ipxe.git
pushd ipxe/src

# this would compile the ipxe version using its internal driver implementations
#make -j3 EMBED=../../boot.ipxe bin/ipxe.pxe bin-x86_64-efi/ipxe.efi
#make -j3 EMBED=../../boot.ipxe CROSS=aarch64-suse-linux- bin-arm64-efi/ipxe.efi

# undionly / snponly uses the network driver of the PXE / UEFI stack
make -j3 EMBED=../../boot.ipxe bin/undionly.kpxe bin-x86_64-efi/snponly.efi
make -j3 EMBED=../../boot.ipxe CROSS=aarch64-suse-linux- bin-arm64-efi/snponly.efi

sudo mv -v bin/undionly.kpxe /srv/tftpboot/ipxe/ipxe.pxe
sudo mv -v bin-x86_64-efi/snponly.efi /srv/tftpboot/ipxe/ipxe.efi
sudo mv -v bin-arm64-efi/snponly.efi /srv/tftpboot/ipxe/ipxe-arm64.efi
popd

0 comments on commit 867408e

Please sign in to comment.