2012-03-04 07:43:13 -06:00
|
|
|
# Raspberry Pi board-specific definitions
|
|
|
|
|
|
|
|
HAIKU_BOARD_DESCRIPTION = "Raspberry Pi" ;
|
2015-03-05 22:41:27 -06:00
|
|
|
HAIKU_BOOT_PLATFORM = u-boot ;
|
2012-05-11 02:17:38 +02:00
|
|
|
|
2012-03-04 07:43:13 -06:00
|
|
|
#
|
|
|
|
# Various hardcoded addresses
|
|
|
|
#
|
|
|
|
|
2015-03-07 13:00:56 -06:00
|
|
|
HAIKU_BOARD_LOADER_BASE = 0x00080000 ;
|
2015-03-07 11:02:48 -06:00
|
|
|
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` ;
|
2015-03-08 00:12:55 +01:00
|
|
|
HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
|
2012-03-04 07:43:13 -06:00
|
|
|
|
2015-03-07 13:00:56 -06:00
|
|
|
HAIKU_BOARD_BOOT_ARCHIVE_BASE = 0x02100000 ;
|
2012-11-28 02:00:00 +01:00
|
|
|
HAIKU_BOARD_BOOT_ARCHIVE_SIZE = 0x00400000 ;
|
|
|
|
# TODO: needs to be configured in the config.txt
|
|
|
|
# ramfsfile=haiku-floppyboot.tgz and ramfsaddr=x
|
|
|
|
|
2012-03-04 07:43:13 -06:00
|
|
|
#
|
|
|
|
# Flash image
|
|
|
|
#
|
|
|
|
|
2012-05-16 08:03:35 -05:00
|
|
|
# N/A for Raspberry Pi
|
2012-03-04 07:43:13 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# mmc/SD image
|
|
|
|
#
|
|
|
|
|
2012-05-16 08:03:35 -05:00
|
|
|
HAIKU_BOARD_FIRMWARE_URL = http://github.com/raspberrypi/firmware/raw/master/boot/ ;
|
|
|
|
HAIKU_BOARD_FIRMWARE_FILES =
|
|
|
|
bootcode.bin
|
|
|
|
loader.bin
|
|
|
|
arm224_start.elf # start.elf
|
|
|
|
LICENSE.broadcom
|
|
|
|
;
|
2012-03-04 07:43:13 -06:00
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
|
2012-05-16 08:03:35 -05:00
|
|
|
HAIKU_BOARD_SDIMAGE_FAT_FILES =
|
|
|
|
$(HAIKU_BOARD_FIRMWARE_FILES)
|
2012-03-04 07:43:13 -06:00
|
|
|
haiku_loader
|
|
|
|
;
|
|
|
|
|
2012-05-16 08:03:35 -05:00
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
|
2012-03-04 07:43:13 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# gcc flags for the specific cpu
|
|
|
|
#
|
|
|
|
|
2015-03-07 11:11:53 -06:00
|
|
|
local flags = -mtune=arm1176jzf-s -march=armv6 ;
|
2015-03-06 14:58:46 -06:00
|
|
|
|
|
|
|
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
|
|
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
|
|
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
2012-03-04 07:43:13 -06:00
|
|
|
|
|
|
|
# Workaround for ld using 32k for alignment despite forcing it in the config...
|
|
|
|
# should definitely not be needed!
|
2012-05-18 00:39:37 +02:00
|
|
|
HAIKU_KERNEL_LINKFLAGS +=
|
2012-03-04 07:43:13 -06:00
|
|
|
-Wl,-z -Wl,max-page-size=0x1000
|
|
|
|
-Wl,-z -Wl,common-page-size=0x1000 ;
|
2013-08-01 08:51:16 +02:00
|
|
|
HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) +=
|
2012-03-04 07:43:13 -06:00
|
|
|
-Wl,-z -Wl,max-page-size=0x1000
|
|
|
|
-Wl,-z -Wl,common-page-size=0x1000 ;
|
|
|
|
|