First attempt at a PPC bootable iso, doesn't work yet.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28543 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-11-07 02:35:46 +00:00
parent 2b0feeea60
commit c7d3cf5b8a
5 changed files with 60 additions and 0 deletions

View File

@ -156,3 +156,4 @@ include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuImage ] ;
include [ FDirName $(HAIKU_BUILD_RULES_DIR) NetBootArchive ] ;
include [ FDirName $(HAIKU_BUILD_RULES_DIR) FloppyBootImage ] ;
include [ FDirName $(HAIKU_BUILD_RULES_DIR) CDBootImage ] ;
include [ FDirName $(HAIKU_BUILD_RULES_DIR) CDBootPPCImage ] ;

View File

@ -44,6 +44,13 @@ HAIKU_CONTAINER_GRIST on $(HAIKU_CD_BOOT_IMAGE_CONTAINER_NAME) = CDBootImage ;
HAIKU_INSTALL_TARGETS_VAR on $(HAIKU_CD_BOOT_IMAGE_CONTAINER_NAME)
= HAIKU_CD_BOOT_IMAGE_INSTALL_TARGETS ;
# boot CD for PPC image
HAIKU_CD_BOOT_PPC_IMAGE_CONTAINER_NAME = haiku-boot-cd-ppc-container ;
HAIKU_CONTAINER_GRIST on $(HAIKU_CD_BOOT_PPC_IMAGE_CONTAINER_NAME) = CDBootPPCImage ;
# HAIKU_INCLUDE_IN_CONTAINER_VAR -- update only mode not supported
HAIKU_INSTALL_TARGETS_VAR on $(HAIKU_CD_BOOT_PPC_IMAGE_CONTAINER_NAME)
= HAIKU_CD_BOOT_PPC_IMAGE_INSTALL_TARGETS ;
# Haiku image/install defaults
HAIKU_DEFAULT_IMAGE_NAME = haiku.image ;
HAIKU_DEFAULT_IMAGE_DIR = $(HAIKU_OUTPUT_DIR) ;

24
build/jam/CDBootPPCImage Normal file
View File

@ -0,0 +1,24 @@
# 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_PPC_IMAGE = haiku-boot-cd-ppc.iso ;
MakeLocate $(HAIKU_CD_BOOT_PPC_IMAGE) : $(HAIKU_OUTPUT_DIR) ;
# the pseudo target all archive contents is attached to
NotFile $(HAIKU_CD_BOOT_PPC_IMAGE_CONTAINER_NAME) ;
# extra files to put on the boot iso
local extras = chrpboot.txt README.html ;
SEARCH on $(extras) = [ FDirName $(HAIKU_TOP) data boot_cd ] ;
BuildCDBootPPCImage $(HAIKU_CD_BOOT_PPC_IMAGE) : $(HAIKU_BOOT_FLOPPY) : $(extras) ;
NotFile haiku-boot-cd-ppc ;
Depends haiku-boot-cd-ppc : $(HAIKU_CD_BOOT_PPC_IMAGE) ;

View File

@ -1066,3 +1066,20 @@ actions BuildCDBootImage1
}
#pragma mark - CD Boot PPC Image rules
rule BuildCDBootPPCImage image : bootloader : extrafiles
{
Depends $(image) : $(bootloader) ;
Depends $(image) : $(extrafiles) ;
BuildCDBootPPCImage1 $(image) : $(bootloader) $(extrafiles) ;
}
actions BuildCDBootPPCImage1
{
$(RM) $(<)
mkisofs -r -U -chrp-boot -V bootimg -o $(<) $(>[1]) $(>[2-])
}

11
data/boot_cd/chrpboot.txt Normal file
View File

@ -0,0 +1,11 @@
<CHRP-BOOT>
<DESCRIPTION>
Haiku Boot Disk
</DESCRIPTION>
<OS-NAME>
Haiku
</OS-NAME>
<BOOT-SCRIPT>
boot cd:\boot_loader_openfirmware
</BOOT-SCRIPT>
</CHRP-BOOT>