From b583626c12fcb66ea6d115006a8f26ac1df61394 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Wed, 6 Nov 2024 14:18:33 +0100 Subject: [PATCH] Add script for building ipxe Ticket: https://progress.opensuse.org/issues/155524 --- ipxe/build.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 ipxe/build.sh diff --git a/ipxe/build.sh b/ipxe/build.sh new file mode 100755 index 0000000..3f3c928 --- /dev/null +++ b/ipxe/build.sh @@ -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