Make use of hack-coff.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28623 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-11-12 02:36:03 +00:00
parent 21c478525f
commit fd19697e68
1 changed files with 5 additions and 2 deletions

View File

@ -51,15 +51,18 @@ rule BuildCoffLoader {
local coffLoader = $(1) ;
local bootLoader = $(2) ;
# XXX: eventually switch on arch
COFF_FORMAT on $(coffLoader) = aixcoff-rs6000 ;
COFF_FORMAT on $(coffLoader) = xcoff-powermac ;
HACK_COFF on $(coffLoader) = <build>hack-coff ;
Depends $(coffLoader) : $(bootLoader) ;
MakeLocateDebug $(coffLoader) ;
}
actions BuildCoffLoader {
actions BuildCoffLoader bind HACK_COFF {
rm -f $(1)
$(TARGET_OBJCOPY) -O $(COFF_FORMAT) $(2) $(1)
#$(CP) $(2) $(1)
$(HACK_COFF) $(1)
}
BuildCoffLoader boot_loader_$(TARGET_BOOT_PLATFORM)_coff : boot_loader_$(TARGET_BOOT_PLATFORM) ;