mirror of https://github.com/ventoy/Ventoy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
544 B
Bash
32 lines
544 B
Bash
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
build_bios() {
|
||
|
rm -f bin/ipxe.iso
|
||
|
|
||
|
make -e -k -j 8 bin/ipxe.iso BIOS_MODE=BIOS
|
||
|
|
||
|
if ! [ -e bin/ipxe.iso ]; then
|
||
|
echo "Failed"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
mkdir -p ./mnt
|
||
|
mount bin/ipxe.iso ./mnt
|
||
|
|
||
|
rm -f ../../../INSTALL/ventoy/ipxe.krn
|
||
|
cp -a ./mnt/ipxe.krn ../../../INSTALL/ventoy/ipxe.krn
|
||
|
|
||
|
umount ./mnt > /dev/null 2>&1
|
||
|
umount ./mnt > /dev/null 2>&1
|
||
|
umount ./mnt > /dev/null 2>&1
|
||
|
|
||
|
rm -rf ./mnt
|
||
|
|
||
|
echo -e "\n===============SUCCESS===============\n"
|
||
|
}
|
||
|
|
||
|
|
||
|
build_bios
|
||
|
|
||
|
|