From 6fd93e956d736af89747038b0731f03386852c55 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 20 Sep 2019 23:56:37 +0900 Subject: [PATCH] add script to rebuild ipxe binaries --- rebuild-ipxe.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 rebuild-ipxe.sh diff --git a/rebuild-ipxe.sh b/rebuild-ipxe.sh new file mode 100755 index 0000000..ea1d2cd --- /dev/null +++ b/rebuild-ipxe.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# Nico Schottelius, 2019-09-20, Seoul, Coffebean, 23:56 +# Copying: GPLv3 + +if [ ! -e ipxe ]; then + git clone git://git.ipxe.org/ipxe.git +else + (cd ipxe; git pull) +fi + +cd ipxe/src + +sed -i -e 's/^#undef.*NET_PROTO_IPV6/#define NET_PROTO_IPV6/' \ + -e 's/^#undef.*DOWNLOAD_PROTO_HTTPS/#define DOWNLOAD_PROTO_HTTPS/' \ + -e 's,^//#define POWEROFF_CMD,#define POWEROFF_CMD,' \ + -e 's,^//#define PING_CMD,#define PING_CMD,' \ + -e 's,^//#define NTP_CMD,#define NTP_CMD,' config/general.h + +set -x + +# Finally: +echo "Building chain-loadable undionly.kpxe" +make bin/undionly.kpxe + +echo "Building USB loadable undionly.kpxe" +make bin/ipxe.usb + + +echo "Building EFI loadable undionly.kpxe" +make bin-x86_64-efi/ipxe.efi