Add RaspberryPi 5 platform template
[AGL/meta-agl.git] / meta-agl-bsp / conf / include / agl_raspberrypi5.inc
1 # Maximum memory allowed to be assigned
2 GPU_MEM = "256"
3
4 # Add CMA to the kernel arguments for SOTA
5 OSTREE_KERNEL_ARGS:sota:append = " cma=256M"
6
7 # use u-boot always (RPi5 U-boot is not ready yet)
8 RPI_USE_U_BOOT = "0"
9
10 # Use UART for serial console
11 ENABLE_UART ?= "1"
12
13 # For libomxil
14 #LICENSE_FLAGS_ACCEPTED = "commercial"
15
16 IMAGE_INSTALL:append = " kernel-modules linux-firmware-rpidistro-bcm43430 linux-firmware-rpidistro-bcm43455 create-combined-dtb "
17
18 # Psplash causes crash on first boot on RPi
19 IMAGE_FEATURES:remove = "splash"
20
21 # Build updatable image. Only takes effect when sota.bbclass is inherited
22 DISTRO_FEATURES:append = " sota"
23
24 # Add xen build, if the xen feature activated
25 DISTRO_FEATURES:append = " ${@bb.utils.contains('AGL_XEN_WANTED', '1', ' xen', '', d)}"
26
27 # add xen-tools to build
28 IMAGE_INSTALL:append = " ${@bb.utils.contains('AGL_XEN_WANTED', '1', 'xen-tools xen-mkimage-rpi4', '', d)}"
29
30 # Add xen-raspberry binary to boot files
31 IMAGE_BOOT_FILES:append = " ${@bb.utils.contains('AGL_XEN_WANTED','1', 'xen-${MACHINE}', '',d)}"
32
33 #DISPLAY CONFIGURATION
34 WESTON_DISPLAYS:raspberrypi5 = " hdmi-a-1-90 hdmi-a-2-90"