Support creating a COFF bootloader from the ELF one, at least for ppc.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28611 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-11-11 19:08:51 +00:00
parent aae9cf1518
commit 11a47de374

View File

@ -47,6 +47,23 @@ KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) :
: -Bstatic : -Bstatic
; ;
rule BuildCoffLoader {
local coffLoader = $(1) ;
local bootLoader = $(2) ;
# XXX: eventually switch on arch
COFF_FORMAT on $(coffLoader) = aixcoff-rs6000 ;
Depends $(coffLoader) : $(bootLoader) ;
MakeLocateDebug $(coffLoader) ;
}
actions BuildCoffLoader {
rm -f $(1)
$(TARGET_OBJCOPY) -O $(COFF_FORMAT) $(2) $(1)
}
BuildCoffLoader boot_loader_$(TARGET_BOOT_PLATFORM)_coff : boot_loader_$(TARGET_BOOT_PLATFORM) ;
rule BuildZbeos { rule BuildZbeos {
local zbeos = $(1) ; local zbeos = $(1) ;
local bootLoader = $(2) ; local bootLoader = $(2) ;