From 38fc668b2e71ad4fcad9dc1f91d88343c625e856 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Fri, 3 Aug 2018 09:55:43 -0500 Subject: [PATCH] arm64: Add architecture rules Change-Id: Ia9cbe77e810b3ab1bde5677a16cc2fbd931de965 --- build/jam/ArchitectureRules | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 7e28f03db7..4ff33d91f2 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -250,6 +250,18 @@ rule KernelArchitectureSetup architecture HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET = 192 ; # in kB - unused yet HAIKU_BOOT_LOADER_BASE ?= 0x1000000 ; + case arm64 : + HAIKU_BOOT_PLATFORM ?= efi ; + + HAIKU_BOOT_SDIMAGE_SIZE ?= 128 ; + # SOC's like allwinner need an offset to skip the hardcoded initial loader + HAIKU_BOOT_SDIMAGE_BEGIN = 40950 ; # 512-byte sectors (divisible by 63) + + HAIKU_BOOT_FLOPPY_IMAGE_SIZE = 1440 ; + # offset in floppy image (>= sizeof(haiku_loader)) + HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET = 192 ; # in kB - unused yet + HAIKU_BOOT_LOADER_BASE ?= 0x1000000 ; + case x86 : HAIKU_BOOT_PLATFORM ?= bios_ia32 ; HAIKU_BOOT_FLOPPY_IMAGE_SIZE = 2880 ; # in kB