f66aa8595c
* Also clean up the flags definitions in the beagle target to avoid repeating the flags 3 times.
73 lines
1.9 KiB
Plaintext
73 lines
1.9 KiB
Plaintext
# BeagleBoard board-specific definitions
|
|
|
|
HAIKU_BOARD_DESCRIPTION = "BeagleBoard" ;
|
|
|
|
|
|
#
|
|
# Various hardcoded addresses
|
|
#
|
|
|
|
# load address for haiku_loader
|
|
HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
|
|
# entry points (raw binary, and netbsd loader emulation)
|
|
HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
|
|
HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
|
|
|
|
HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
|
|
HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
|
|
|
|
# load address for haiku_loader uimage
|
|
# (must be different than real load address)
|
|
HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
|
|
|
|
HAIKU_BOARD_LOADER_STACK_BASE = 0x81a00000 ;
|
|
|
|
#
|
|
# Flash image
|
|
#
|
|
|
|
# OMAP x-loader image, must be first file on FAT partition
|
|
HAIKU_BOARD_MLO_IMAGE ?= MLO ;
|
|
HAIKU_BOARD_MLO_IMAGE_URL =
|
|
http://downloads.angstrom-distribution.org/demo/beagleboard/MLO ;
|
|
|
|
# u-boot binary image filename, to build the flash image
|
|
# XXX: Locate it somehow (for now just put it in generated/)
|
|
HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.img ;
|
|
HAIKU_BOARD_UBOOT_IMAGE_URL =
|
|
http://downloads.angstrom-distribution.org/demo/beagleboard/u-boot.img ;
|
|
|
|
#
|
|
# mmc/SD image
|
|
#
|
|
|
|
# in MB
|
|
HAIKU_BOARD_SDIMAGE_SIZE = 64 ;
|
|
|
|
# in MB
|
|
HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
|
|
|
|
mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
|
|
: $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
|
|
|
|
ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
|
|
: $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
|
|
|
|
HAIKU_BOARD_SDIMAGE_FILES =
|
|
$(mloFile)
|
|
$(ubootFile)
|
|
haiku_loader_nbsd.ub
|
|
;
|
|
|
|
|
|
#
|
|
# gcc flags for the specific cpu
|
|
|
|
local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard
|
|
-DHAIKU_BOARD_LOADER_STACK_BASE=$(HAIKU_BOARD_LOADER_STACK_BASE)
|
|
-DHAIKU_BOARD_LOADER_UIBASE=$(HAIKU_BOARD_LOADER_UIBASE) ;
|
|
|
|
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|