opendreambox 2.0
[opendreambox.git] / meta-bsp / common / conf / machine / include / dreambox.inc
1 # dreambox.inc
2
3 EXTRA_IMAGEDEPENDS += "dreambox-secondstage"
4
5 GLIBC_EXTRA_OECONF = "--with-tls --with-__thread"
6
7 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "dreambox-dvb-modules"
8 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "task-opendreambox-essential"
9 MACHINE_FEATURES += "alsa kernel26 wifi"
10
11 PREFERRED_PROVIDER_virtual/bootloader = "dreambox-secondstage"
12 PREFERRED_PROVIDER_virtual/kernel = "linux-dreambox"
13
14 PREFERRED_VERSION_linux-dreambox = "${DREAMBOX_KERNEL_VERSION}"
15
16 KERNEL_IMAGETYPE = "vmlinux"
17 KERNEL_OUTPUT = "${KERNEL_IMAGETYPE}"
18 KERNEL_CONSOLE = "${@base_contains('DREAMBOX_FEATURES', 'usbconsole', 'ttyS0,115200', 'null', d)}"
19
20 # XXX: That's just copied from somewhere else. Need to get
21 # correct values!
22
23 # do ubiattach /dev/ubi_ctrl -m 4
24 # From dmesg:
25 # UBI: smallest flash I/O unit:    2048
26 # UBI: logical eraseblock size:    129024 bytes
27 # from ubiattach stdout:
28 # UBI device number 0, total 1996 LEBs
29 MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996 -x favor_lzo -X 1"
30
31 # do ubiattach /dev/ubi_ctrl -m 4
32 # from dmesg:
33 # UBI: smallest flash I/O unit:    2048
34 # UBI: physical eraseblock size:   131072 bytes (128 KiB)
35 # UBI: sub-page size:              512
36 UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
37
38 DREAMBOX_BUILDIMAGE = "buildimage --arch ${MACHINE} ${EXTRA_BUILDCMD} \
39         --erase-block-size ${DREAMBOX_ERASE_BLOCK_SIZE} \
40         --flash-size ${DREAMBOX_FLASH_SIZE} \
41         --sector-size ${DREAMBOX_SECTOR_SIZE}"