libroot/posix/stdio: Remove unused portions.
[haiku.git] / build / jam / board / verdex / BoardSetup
blobbcfc2edfbbabbf2dc32f581106a3a8e371d4c7ff
1 # Gumstix Verdex board-specific definitions
3 HAIKU_BOARD_DESCRIPTION = "Gumstix Verdex" ;
6 # Various hardcoded addresses
9 # load address for haiku_loader
10 HAIKU_BOARD_LOADER_BASE = 0xa2000000 ;
11 # entry points (raw binary, and netbsd loader emulation)
12 HAIKU_BOARD_LOADER_ENTRY_RAW = 0xa2000000 ;
13 HAIKU_BOARD_LOADER_ENTRY_NBSD = 0xa2000008 ;
15 HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
16 HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
18 # load address for haiku_loader uimage
19 # (must be different than real load address)
20 HAIKU_BOARD_LOADER_UIBASE = 0xa4000000 ;
23 # Flash image
26 # u-boot binary image filename, to build the flash image
27 # XXX: Locate it somehow (for now just put it in generated/)
28 HAIKU_BOARD_UBOOT_IMAGE ?= u-boot-verdex-400-r1604.bin ;
29 HAIKU_BOARD_UBOOT_IMAGE_URL =
30         http://www.gumstix.net/feeds/u-boot/u-boot-verdex-400-r1604.bin ;
32 # flash offsets:
33 #       FLASH_IMAGE_BLOCK_SIZE on $(image) = 128k ;
34 #       FLASH_IMAGE_BLOCK_COUNT on $(image) = 256 ;
35 #       #FLASH_IMAGE_UBOOT_OFFSET on $(image) = 0 ;
36 #       FLASH_IMAGE_LOADER_OFFSET on $(image) = 248 ;
37 # in kB
38 FLASH_IMAGE_LOADER_OFFSET = 31744 ;
40 # TODO: add U-Boot
41 FLASH_IMAGE_PARTS = ;
44 # mmc/SD image
47 # in MB
48 HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
50 # in MB
51 HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
53 # autoboot script
54 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = gumstix-factory.script ;
56 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
57 setenv bootargs debug_screen true; \
58 if mmcinit; then \
59         fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \
60         bootm $(HAIKU_BOARD_LOADER_UIBASE); \
61 fi" ;
63 HAIKU_BOARD_SDIMAGE_FILES =
64         haiku_loader
65         haiku_loader.ub
66         haiku_loader_nbsd.ub
67         $(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
72 # gcc flags for the specific cpu
75 HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ;
76 HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ;
77 HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ;
79 # Workaround for ld using 32k for alignment despite forcing it in the config...
80 # should definitely not be needed!
81 HAIKU_KERNEL_LINKFLAGS +=
82         -Wl,-z -Wl,max-page-size=0x1000
83         -Wl,-z -Wl,common-page-size=0x1000 ;
84 HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) +=
85         -Wl,-z -Wl,max-page-size=0x1000
86         -Wl,-z -Wl,common-page-size=0x1000 ;