mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-14 01:08:23 +01:00
1d6ef084db
Enable open source GPU support for Mali Utgard GPUs (lima driver) and Mali Midgard and Bifrost GPUs (panfrost driver). The support is enabled by: - enabling DRM kernel CONFIGs - enabling lima, panfrost and kmsro in Mesa - disabling the specific mali driver overrides in sunxi-mali.inc To enable open source mainline graphics support just add the following line in your local.conf: MACHINEOVERRIDES .= ":use-mailine-graphics" Please note that some machines may need a bigger CMA value to be able to start Weston. To do that, add e.g. "cma=128M" to the kernel parameters. Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
16 lines
498 B
HTML
16 lines
498 B
HTML
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
|
|
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
|
|
PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali"
|
|
PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali"
|
|
PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali"
|
|
|
|
PACKAGECONFIG_remove_pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}"
|
|
|
|
XSERVER += "sunxi-mali \
|
|
sunxi-mali-dev"
|
|
|
|
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\
|
|
kernel-module-mali \
|
|
kernel-module-mali-drm \
|
|
"
|