anyboot: Add EFI partition support

* Enables us to add an optional EFI filesystem
  to the anyboot image.
* All existing anyboot behaviour is preserved.
* We still need to figure out how to build bios
  and EFI loaders at the same time on x86.
* The tiny "fake ISO" still needs el-torito
  alt-boot for the EFI loader to work when burned
  to a CD. This makes the EFI loader work when
  written to a hard disk / flash drive.
This commit is contained in:
Alexander von Gluck IV
2017-05-26 16:13:44 -05:00
parent 6af29d4f83
commit 2f0ca6974e
2 changed files with 202 additions and 84 deletions
+2 -2
View File
@@ -12,11 +12,11 @@ rule BuildAnybootImage anybootImage : mbrPart : isoPart : imageFile {
Depends $(anybootImage) : $(mbrPart) ;
Depends $(anybootImage) : $(imageFile) ;
BuildAnybootImage1 $(anybootImage) : $(anyboot) $(isoPart) $(mbrPart) $(imageFile) ;
BuildAnybootImage1 $(anybootImage) : $(anyboot) $(mbrPart) $(isoPart) $(imageFile) ;
}
actions BuildAnybootImage1 {
$(2[1]) $(1) $(2[2]) $(2[3]) $(2[4])
$(2[1]) -b $(2[2]) $(2[3]) $(2[4]) $(1)
}
local baseMBR = base_mbr.bin ;