mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
Generate sha256-checksums for iPXE bootloaders
This commit is contained in:
parent
2a174ff952
commit
d5dd98c151
1 changed files with 18 additions and 0 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue