meta-agl-bsp: clean up Raspberry Pi Xen support
[AGL/meta-agl.git] / meta-agl-bsp / conf / include / agl_raspberrypi4.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
8 RPI_USE_U_BOOT = "1"
9
10 # Use UART for serial console
11 ENABLE_UART ?= "1"
12
13 # For libomxil
14 #LICENSE_FLAGS_WHITELIST = "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 PREFERRED_VERSION_u-boot = "2020.10"
34 PREFERRED_VERSION_u-boot-tools = "2020.10"
35 UBOOT_MACHINE_rpi = "rpi_arm64_config"