haiku/build/jam/images/CDBootImage
David Karoly 05c1a8991e enable EFI boot for 32-bit ISO image
Building EFI partition for 32-bit anyboot ISO image was disabled
in hrev52443 to fix issue #14656.

As haiku_loader.efi is now available for the x86 architecture
since hrev55917, we can re-enable building EFI system partition
for the 32-bit ISO.

We can also remove the build rules related to HAIKU_ANYBOOT_LEGACY
as it is not used any more.

Change-Id: I9c2c272bcd0f9c1a98ee6cea300374dc26b4818d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5716
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-10-06 20:12:05 +00:00

50 lines
1.6 KiB
Plaintext

# This file defines what ends up in the CD boot image and it executes the
# rules building the image.
#HAIKU_BOOT_FLOPPY = haiku-boot-floppy.image ;
#MakeLocate $(HAIKU_BOOT_FLOPPY) : $(HAIKU_OUTPUT_DIR) ;
# CD image target
HAIKU_CD_BOOT_IMAGE = haiku-boot-cd.iso ;
MakeLocate $(HAIKU_CD_BOOT_IMAGE) : $(HAIKU_OUTPUT_DIR) ;
# the pseudo target all archive contents is attached to
NotFile $(HAIKU_CD_BOOT_IMAGE_CONTAINER_NAME) ;
# common extra files to put on the boot iso
local extras = README.html ;
SEARCH on $(extras) = [ FDirName $(HAIKU_TOP) data boot extras ] ;
if $(TARGET_ARCH) = ppc {
local elfloader = boot_loader_openfirmware ;
local coffloader = haiku_loader.openfirmware ;
# OpenFirmware / Mac boot support files:
# CHRP script
local chrpscript = ofboot.chrp ;
# HFS creator and application type mapping for mkisofs
local hfsmaps = hfs.map ;
BuildCDBootPPCImage $(HAIKU_CD_BOOT_IMAGE) : $(hfsmaps)
: $(elfloader) : $(coffloader) : $(chrpscript) : $(extras) ;
} else {
# For other platforms, we have to check which bootloader is used. There
# can be multiple ones, making this a bit confusing.
for platform in [ MultiBootSubDirSetup ] {
on $(platform) {
if $(TARGET_BOOT_PLATFORM) = efi {
local efiLoader = haiku_loader.efi ;
local efiPartition = esp.image ;
MakeLocateDebug $(efiPartition) : system boot ;
BuildEfiSystemPartition $(efiPartition) : $(efiLoader) ;
BuildCDBootImageEFI $(HAIKU_CD_BOOT_IMAGE) : $(HAIKU_BOOT_FLOPPY)
: $(efiPartition) : $(extras) ;
}
}
}
}
NotFile haiku-boot-cd ;
Depends haiku-boot-cd : $(HAIKU_CD_BOOT_IMAGE) ;