298cacd56332aa6f42d5e52f9431b92514c1cc70
[AGL/meta-agl.git] / meta-agl-bsp / conf / include / agl_raspberrypi3.inc
1 # Maximum memory allowed to be assigned
2 GPU_MEM = "128"
3
4 ENABLE_CMA = "1"
5 CMA_LWM = "16"
6 CMA_HWM = "32"
7
8 MULTI_PROVIDER_WHITELIST += "virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2"
9
10 # The correct config for a Raspberry Pi 3 in 32bit mode
11 UBOOT_MACHINE = "rpi_3_32b_config"
12
13 KERNEL_IMAGETYPE = "uImage"
14
15 MACHINE_FEATURES += "vc4graphics"
16
17 # For libomxil
18 #LICENSE_FLAGS_WHITELIST = "commercial"
19
20 IMAGE_INSTALL_append = " kernel-modules linux-firmware-rpidistro-bcm43430 linux-firmware-rpidistro-bcm43455 create-combined-dtb "
21
22 # Psplash causes crash on first boot on RPi
23 IMAGE_FEATURES_remove = "splash"
24
25 # Build updatable image. Only takes effect when sota.bbclass is inherited
26 DISTRO_FEATURES_append = " sota"
27
28 # Create WIC images to write to SD cards.
29 WKS_FILE = "sdimage-raspberrypi.wks"
30 AGL_EXTRA_IMAGE_FSTYPES = "wic.xz wic.bmap wic.xz.sha256sum"
31 IMAGE_BOOT_FILES = "bcm2835-bootfiles/* \
32                  ${@make_dtb_boot_files(d)} \
33                  ${@bb.utils.contains('KERNEL_IMAGETYPE', 'uImage', \
34                     '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \
35                     '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \
36                  "
37 do_image_wic[depends] += " \
38     bcm2835-bootfiles:do_deploy \
39     ${@bb.utils.contains('KERNEL_IMAGETYPE', 'uImage', 'u-boot:do_deploy', '',d)} \
40     "