Merge pull request #563 from anderbubble/ipxe-vlan-cmd
Enable VLAN_CMD in ipxe
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Builds ipxe binaries from github sources or given tarball
|
||||
|
||||
VERSION=v1.21.1
|
||||
|
||||
ARCH=x86_64
|
||||
|
||||
@@ -11,11 +14,17 @@ EFI_output=`pwd`/staticfiles/${ARCH}.efi
|
||||
set -xe
|
||||
|
||||
|
||||
TMPDIR=`mktemp -d`
|
||||
cd "$TMPDIR"
|
||||
TMPDIR=`mktemp -d /tmp/ipxebuild.XXXXXX`
|
||||
if [ -f "$1" ] ; then
|
||||
WRKDIR=`pwd`
|
||||
cd "$TMPDIR"
|
||||
tar xzf $WRKDIR/$1
|
||||
else
|
||||
cd "$TMPDIR"
|
||||
git clone --depth 1 --branch $VERSION https://github.com/ipxe/ipxe.git
|
||||
fi
|
||||
|
||||
git clone https://github.com/ipxe/ipxe.git
|
||||
cd ipxe/src
|
||||
cd ipxe*/src
|
||||
|
||||
sed -i.bak \
|
||||
-e 's,//\(#define.*CONSOLE_SERIAL.*\),\1,' \
|
||||
@@ -25,10 +34,11 @@ sed -i.bak \
|
||||
sed -i.bak \
|
||||
-e 's,//\(#define.*IMAGE_ZLIB.*\),\1,' \
|
||||
-e 's,//\(#define.*IMAGE_GZIP.*\),\1,' \
|
||||
-e 's,//\(#define.*VLAN_CMD.*\),\1,' \
|
||||
config/general.h
|
||||
|
||||
make -j 8 $PCBIOS
|
||||
make -j 8 $EFI
|
||||
make -j 8 $PCBIOS "$@"
|
||||
make -j 8 $EFI "$@"
|
||||
|
||||
|
||||
cp $PCBIOS $PCBIOS_output
|
||||
|
||||
2
staticfiles/README.md
Normal file
2
staticfiles/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# iPXE binaries
|
||||
Binaries can be rebuild with the `ixpe-update.sh` script.
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user