Generate sha256-checksums for iPXE bootloaders

This commit is contained in:
Antony Messerli 2015-09-24 14:44:36 -05:00
parent 2a174ff952
commit d5dd98c151

View file

@ -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/