Build pxestick using ipxe source
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -90,3 +90,7 @@
|
||||
path = apps/firmware-smmstore
|
||||
url = https://github.com/system76/firmware-smmstore.git
|
||||
branch = master
|
||||
[submodule "tools/ipxe"]
|
||||
path = tools/ipxe
|
||||
url = https://github.com/ipxe/ipxe.git
|
||||
branch = master
|
||||
|
@@ -4,9 +4,11 @@ set -e
|
||||
|
||||
rm -rf build/pxestick
|
||||
mkdir -p build/pxestick
|
||||
cd build/pxestick
|
||||
|
||||
wget -O ipxe.efi http://boot.ipxe.org/ipxe.efi
|
||||
make -C tools/ipxe/src bin-x86_64-efi/axge.efi
|
||||
cp tools/ipxe/src/bin-x86_64-efi/axge.efi build/pxestick/ipxe.efi
|
||||
|
||||
cd build/pxestick
|
||||
|
||||
dd if=/dev/zero of=usb.img.partial bs=512 count=2048
|
||||
mkfs.vfat usb.img.partial
|
||||
@@ -14,3 +16,8 @@ mmd -i usb.img.partial efi
|
||||
mmd -i usb.img.partial efi/boot
|
||||
mcopy -i usb.img.partial ipxe.efi ::efi/boot/bootx64.efi
|
||||
mv usb.img.partial usb.img
|
||||
|
||||
if [ -b "$1" ]
|
||||
then
|
||||
sudo popsicle -u usb.img "$1"
|
||||
fi
|
||||
|
1
tools/ipxe
Submodule
1
tools/ipxe
Submodule
Submodule tools/ipxe added at 18dc73d27e
Reference in New Issue
Block a user