From b0b9925be1be2bccc9d2ae1def0b424c99b0426c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 5 Aug 2009 16:00:13 +0000 Subject: [PATCH] Introduce a new level of portability: boards. Since we don't support Flattened Device Trees yet (and they don't solve all the issues), we need a place to hole board-specific config, which are different even though we use U-Boot on ARM. Things like cpu & mmu type... U-Boot doesn't really help us there anyway, it only passes a few board infos (RAM banks & the bill), and optionally other stuff if we fake a linux kernel or netbsd loader, but still not enough. FDT support isn't available for ARM in U-Boot yet either. So for now, and likely for stuff we can't get from FDT, we'll put board-specific config there. Unlike desktop machines were we want a single kernel per arch, we'd rather have the kernel built for a single board without having to handle detecting mmu type at boot and switching calls like I did on m68k. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32137 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 00c1dc5632..bf4c89a18f 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -198,6 +198,7 @@ switch $(HAIKU_CPU) { { HAIKU_DEFINES += __ARM__ ; HAIKU_BOOT_PLATFORM = u-boot ; + HAIKU_BOOT_BOARD ?= verdex ; HAIKU_BOOT_FLOPPY_IMAGE_SIZE = 1440 ; # in kB (there is not realy a floppy on the gumstix ;) ) # offset in floppy image (>= sizeof(haiku_loader)) HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET = 192 ; # in kB - unused yet @@ -850,6 +851,7 @@ if $(TARGET_PLATFORM) = haiku { TARGET_GCC_LIBGCC_OBJECTS = $(HAIKU_GCC_LIBGCC_OBJECTS) ; TARGET_BOOT_PLATFORM ?= $(HAIKU_BOOT_PLATFORM) ; + TARGET_BOOT_BOARD ?= $(HAIKU_BOOT_BOARD) ; TARGET_LIBRARY_NAME_MAP = HAIKU_LIBRARY_NAME_MAP ;