Add the checksum required step for atari_m68k on the boot floppy.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30471 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2009-04-27 20:00:28 +00:00
parent 357179de85
commit 9c08ace28c
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@ if $(TARGET_ARCH) = x86 {
X86_ONLY = "" ;
} else if $(TARGET_ARCH) = ppc {
X86_ONLY = ;
} else if $(TARGET_ARCH) = m68k {
X86_ONLY = ;
}
local GPL_ONLY = ;
+9
View File
@@ -1059,6 +1059,10 @@ rule BuildFloppyBootImage image : haikuLoader : archive
FLOPPY_IMAGE_SIZE on $(image) = $(HAIKU_BOOT_FLOPPY_IMAGE_SIZE) ;
ARCHIVE_IMAGE_OFFSET on $(image) = $(HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET) ;
BuildFloppyBootImage1 $(image) : $(haikuLoader) $(archive) ;
if $(HAIKU_BOOT_PLATFORM) = atari_m68k {
Depends $(image) : <build>fixup_tos_boot_checksum ;
BuildFloppyBootImageAtariM68K $(image) : <build>fixup_tos_boot_checksum ;
}
}
actions BuildFloppyBootImage1
@@ -1072,6 +1076,11 @@ actions BuildFloppyBootImage1
dd if=$(>[2]) of=$(<) bs=$(ARCHIVE_IMAGE_OFFSET)k seek=1 conv=notrunc
}
actions BuildFloppyBootImageAtariM68K
{
# fixup the boot sector checksum
$(>[1]) $(<)
}
#pragma mark - CD Boot Image rules