libroot/posix/stdio: Remove unused portions.
[haiku.git] / build / jam / board / beagleboard / BoardSetup
blobe94aa8af9408f599afa3b5baf2cb041b8486dbc6
1 # BeagleBoard board-specific definitions
3 HAIKU_BOARD_DESCRIPTION = "BeagleBoard" ;
4 HAIKU_BOARD_FDT_NAME = "omap3-beagle-xm" ;
8 # Various hardcoded addresses
11 # load address for haiku_loader
12 HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
13 # entry points (raw binary, and netbsd loader emulation)
14 HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
15 HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
16 HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
18 HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
19 HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
21 # load address for haiku_loader uimage
22 # (must be different than real load address)
23 HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
26 # Flash image
29 # OMAP x-loader image, must be first file on FAT partition
30 HAIKU_BOARD_MLO_IMAGE ?= MLO ;
31 HAIKU_BOARD_MLO_IMAGE_URL =
32        http://downloads.angstrom-distribution.org/demo/beagleboard/MLO ;
34 # u-boot binary image filename, to build the flash image
35 # XXX: Locate it somehow (for now just put it in generated/)
36 HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.img ;
37 HAIKU_BOARD_UBOOT_IMAGE_URL =
38        http://downloads.angstrom-distribution.org/demo/beagleboard/u-boot.img ;
41 # mmc/SD image
44 # in MB
45 HAIKU_BOARD_SDIMAGE_SIZE = 64 ;
47 # in MB
48 HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
50 mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
51         : $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
53 ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
54         : $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
56 # U-Boot environment
57 # We load the uImage 2MB above its final destination, bootm will decode
58 # it to the proper location. Our image is smaller than 2MB so this works.
59 #HAIKU_BOARD_SDIMAGE_UBOOT_UENV_NAME = uEnv.txt ;
60 HAIKU_BOARD_SDIMAGE_UBOOT_UENV = "uenvcmd=run loadImage; run mmcboot; \
61                 loadImage=fatload mmc0 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_linux.ub; fatload mmc 0 0x80100000 /fdt/$(HAIKU_BOARD_FDT_NAME).dtb; fatload mmc 0 0x81200000 haiku-floppyboot.tgz.ub; \
62                 mmcboot=bootm $(HAIKU_BOARD_LOADER_UIBASE) 0x81200000 0x80100000" ;
64 HAIKU_BOARD_SDIMAGE_FILES =
65         $(mloFile)
66         $(ubootFile)
67         haiku_loader_nbsd.ub
68         haiku_loader_linux.ub
69         haiku-floppyboot.tgz.ub
74 # gcc flags for the specific cpu
76 local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
78 HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
79 HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
80 HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;