-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from asdil12/prg2-ipxe
Add script for building ipxe
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |