vfs: check userland buffers before reading them.
[haiku.git] / build / jam / board / beaglebone / BoardSetup
blob363c9e88bbe99b4d6fabfea435ad0497d3722048
1 # BeagleBone board-specific definitions
3 HAIKU_BOARD_DESCRIPTION = "BeagleBone" ;
4 HAIKU_BOARD_FDT_NAME = "boneblack" ;
6 # Not that many in the wild
7 #HAIKU_BOARD_FDT_NAME = "beaglebone" ;
11 # Various hardcoded addresses
14 # load address for haiku_loader
15 HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
16 HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
17 HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
18 HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
21 # mmc/SD image
24 # in MB
25 HAIKU_BOARD_SDIMAGE_SIZE = 64 ;
26 HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
28 # OMAP x-loader image, must be first file on FAT partition
29 HAIKU_BOARD_MLO_IMAGE_URL = https://github.com/haiku/firmware/raw/master/arm/beaglebone ;
30 mloFile = [ DownloadFile MLO : $(HAIKU_BOARD_MLO_IMAGE_URL)/MLO ] ;
32 # u-boot image
33 HAIKU_BOARD_UBOOT_IMAGE_URL = https://github.com/haiku/firmware/raw/master/arm/beaglebone ;
34 ubootFile = [ DownloadFile u-boot.img : $(HAIKU_BOARD_UBOOT_IMAGE_URL)/u-boot.img ] ;
36 # U-Boot environment
37 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = boot.scr ;
38 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
39 fatload mmc 0 ${fdt_addr_r} /fdt/$(HAIKU_BOARD_FDT_NAME).dtb \
40     fdt addr ${fdt_addr_r} \
41     fatload mmc 0 ${ramdisk_addr_r} haiku-floppyboot.tgz.ub \
42     fatload mmc 0 ${kernel_addr_r} haiku_loader_linux.ub \
43     bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}" ;
45 HAIKU_BOARD_SDIMAGE_FILES =
46         $(mloFile)
47         $(ubootFile)
48         haiku_loader_linux.ub
49         haiku-floppyboot.tgz.ub
50     $(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
54 # gcc flags for the specific cpu
56 local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
58 HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
59 HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
60 HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;