add script to rebuild ipxe binaries
This commit is contained in:
parent
90597d454a
commit
6fd93e956d
1 changed files with 30 additions and 0 deletions
30
rebuild-ipxe.sh
Executable file
30
rebuild-ipxe.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue