Skip to content

Commit 867408e

Browse files
authored
Merge pull request #351 from asdil12/prg2-ipxe
Add script for building ipxe
2 parents 1a51388 + b583626 commit 867408e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ipxe/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -e
2+
3+
sudo zypper -n install cross-aarch64-gcc11 xz-devel
4+
5+
test -d ipxe || git clone https://github.com/ipxe/ipxe.git
6+
pushd ipxe/src
7+
8+
# this would compile the ipxe version using its internal driver implementations
9+
#make -j3 EMBED=../../boot.ipxe bin/ipxe.pxe bin-x86_64-efi/ipxe.efi
10+
#make -j3 EMBED=../../boot.ipxe CROSS=aarch64-suse-linux- bin-arm64-efi/ipxe.efi
11+
12+
# undionly / snponly uses the network driver of the PXE / UEFI stack
13+
make -j3 EMBED=../../boot.ipxe bin/undionly.kpxe bin-x86_64-efi/snponly.efi
14+
make -j3 EMBED=../../boot.ipxe CROSS=aarch64-suse-linux- bin-arm64-efi/snponly.efi
15+
16+
sudo mv -v bin/undionly.kpxe /srv/tftpboot/ipxe/ipxe.pxe
17+
sudo mv -v bin-x86_64-efi/snponly.efi /srv/tftpboot/ipxe/ipxe.efi
18+
sudo mv -v bin-arm64-efi/snponly.efi /srv/tftpboot/ipxe/ipxe-arm64.efi
19+
popd

0 commit comments

Comments
 (0)