|
@@ -12,6 +12,11 @@ cp ipxe/local/* ipxe_build/src/config/local/
|
|
|
|
|
|
# build iPXE disks
|
|
|
cd ipxe_build/src
|
|
|
+
|
|
|
+# get current iPXE hash
|
|
|
+IPXE_HASH=`git log -n 1 --pretty=format:"%H"`
|
|
|
+
|
|
|
+# generate iPXE disks
|
|
|
for ipxe_config in `ls ../../ipxe/disks/`
|
|
|
do
|
|
|
make EMBED=../../ipxe/disks/$ipxe_config
|
|
@@ -23,5 +28,18 @@ do
|
|
|
done
|
|
|
cd ../..
|
|
|
|
|
|
+# generate header for sha256-checksums file
|
|
|
+cat > "build/ipxe/netboot.xyz-sha256-checksums.txt" <<EOF
|
|
|
+# netboot.xyz bootloaders generated from https://github.com/ipxe/ipxe
|
|
|
+# Git Hash: $IPXE_HASH
|
|
|
+
|
|
|
+EOF
|
|
|
+
|
|
|
+# generate sha256sums for iPXE disks
|
|
|
+for ipxe_disk in `ls build/ipxe/`
|
|
|
+do
|
|
|
+ sha256sum $ipxe_disk >> build/ipxe/netboot.xyz-sha256-checksums.txt
|
|
|
+done
|
|
|
+
|
|
|
# copy iPXE src code into build directory
|
|
|
cp -R src/* build/
|