38eb9fb0eb
* Move assets to new boot directory * -hfsplus not valid anymore on cdrtools 3.02 * Throw down some forth I saw in an *old* fedora 12 chrp script. If we ever target ppc64 it might be handy someday. The text output also lets you know the cd booted successfully. Change-Id: I169d887fe8373de1719b98305d01b714f6f6bcbe Reviewed-on: https://review.haiku-os.org/c/haiku/+/4681 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
54 lines
1.7 KiB
Plaintext
54 lines
1.7 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 ;
|
|
MakeLocate $(efiPartition) : $(HAIKU_OUTPUT_DIR) ;
|
|
BuildEfiSystemPartition $(efiPartition) : $(efiLoader) ;
|
|
|
|
BuildCDBootImage $(HAIKU_CD_BOOT_IMAGE) : $(HAIKU_BOOT_FLOPPY)
|
|
: $(efiPartition) : $(extras) ;
|
|
|
|
} else if $(HAIKU_ANYBOOT_LEGACY) = 1 {
|
|
BuildCDBootImage $(HAIKU_CD_BOOT_IMAGE) : $(HAIKU_BOOT_FLOPPY) :
|
|
: $(extras) ;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
NotFile haiku-boot-cd ;
|
|
Depends haiku-boot-cd : $(HAIKU_CD_BOOT_IMAGE) ;
|