mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Add virglrenderer, an optional dependency of QEMU, which facilitates acceleration of rendering and optionally video decode through virtio-gpu. Add an upstream patch to fix the build with glibc 2.43, not present in a stable release yet. Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> Signed-off-by: Romain Naour <romain.naour@smile.fr>
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# virglrenderer
|
|
#
|
|
################################################################################
|
|
|
|
VIRGLRENDERER_VERSION = 1.3.0
|
|
VIRGLRENDERER_SITE = https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/$(VIRGLRENDERER_VERSION)
|
|
VIRGLRENDERER_LICENSE = MIT
|
|
VIRGLRENDERER_LICENSE_FILES = COPYING
|
|
VIRGLRENDERER_INSTALL_STAGING = YES
|
|
VIRGLRENDERER_DEPENDENCIES = \
|
|
libepoxy \
|
|
host-pkgconf \
|
|
host-python3 \
|
|
host-python-pyyaml
|
|
VIRGLRENDERER_CPE_ID_VALID = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_VIRGLRENDERER_VIRGL),y)
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGBM),yy)
|
|
VIRGLRENDERER_PLATFORMS += egl
|
|
VIRGLRENDERER_DEPENDENCIES += \
|
|
libegl \
|
|
libgbm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
VIRGLRENDERER_PLATFORMS += glx
|
|
VIRGLRENDERER_DEPENDENCIES += libgl
|
|
endif
|
|
endif # BR2_PACKAGE_VIRGLRENDERER_VIRGL
|
|
|
|
VIRGLRENDERER_CONF_OPTS += -Dplatforms=$(subst $(space),$(comma),$(VIRGLRENDERER_PLATFORMS))
|
|
|
|
ifeq ($(BR2_PACKAGE_VIRGLRENDERER_VENUS),y)
|
|
VIRGLRENDERER_CONF_OPTS += -Dvenus=true
|
|
VIRGLRENDERER_DEPENDENCIES += \
|
|
vulkan-headers \
|
|
vulkan-loader
|
|
else
|
|
VIRGLRENDERER_CONF_OPTS += -Dvenus=false
|
|
endif
|
|
|
|
VIRGLRENDERER_DRM_BACKENDS-$(BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_AMDGPU) += amdgpu-experimental
|
|
VIRGLRENDERER_DRM_BACKENDS-$(BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_INTEL) += i915-experimental
|
|
VIRGLRENDERER_DRM_BACKENDS-$(BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_MSM) += msm
|
|
VIRGLRENDERER_DRM_BACKENDS-$(BR2_PACKAGE_VIRGLRENDERER_DRM_BACKEND_PANFROST) += panfrost-experimental
|
|
|
|
VIRGLRENDERER_CONF_OPTS += -Ddrm-renderers=$(subst $(space),$(comma),$(VIRGLRENDERER_DRM_BACKENDS-y))
|
|
|
|
ifneq ($(VIRGLRENDERER_DRM_BACKENDS-y),)
|
|
VIRGLRENDERER_DEPENDENCIES += libdrm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_VIRGLRENDERER_VAAPI),y)
|
|
VIRGLRENDERER_CONF_OPTS += -Dvideo=true
|
|
VIRGLRENDERER_DEPENDENCIES += libva libdrm
|
|
else
|
|
VIRGLRENDERER_CONF_OPTS += -Dvideo=false
|
|
endif
|
|
|
|
$(eval $(meson-package))
|