Skip to content

Commit

Permalink
floppy: switch to gpt partitioning
Browse files Browse the repository at this point in the history
Signed-off-by: Nahum Shalman <[email protected]>
  • Loading branch information
nshalman authored and jacobweinstock committed Oct 4, 2023
1 parent 6951bda commit 12c0643
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ binary/snp.efi: $(ipxe_readme) ## build snp.efi
binary/ipxe.iso: $(ipxe_readme) ## build ipxe.iso
+${IPXE_BUILD_SCRIPT} bin-x86_64-efi/ipxe.iso "$(ipxe_sha_or_tag)" $@

.DELETE_ON_ERROR: binary/ipxe-efi.img
binary/ipxe-efi.img: binary/ipxe.efi ## build ipxe-efi.img
qemu-img create -f raw $@.t 1440K
mkfs.vfat --mbr=y -F 12 -n IPXE $@.t
mmd -i $@.t ::/EFI
mmd -i $@.t ::/EFI/BOOT
mcopy -i $@.t $< ::/EFI/BOOT/BOOTX64.efi
mv $@.t $@
qemu-img create -f raw $@ 1440K
sgdisk --clear --set-alignment=34 --new 1:34:-0 --typecode=1:EF00 --change-name=1:"IPXE" $@
mkfs.vfat -F 12 -n "IPXE" --offset 34 $@ 1400
mmd -i $@@@17K ::/EFI
mmd -i $@@@17K ::/EFI/BOOT
mcopy -i $@@@17K $< ::/EFI/BOOT/BOOTX64.efi

.PHONY: binary/clean
binary/clean: ## clean ipxe binaries, upstream ipxe source code directory, and ipxe source tarball
Expand Down
1 change: 1 addition & 0 deletions binary/script/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ in
gnumake
gnused
go
gptfdisk
mtools
perl
qemu-utils
Expand Down

0 comments on commit 12c0643

Please sign in to comment.