f1db1e9ff1
Removed patches applied upstream: https://cgit.freedesktop.org/mesa/drm/commit/xf86drm.h?id=8c1185d22cb5ea09dea063bd4a0a4f8b64487919 https://cgit.freedesktop.org/mesa/drm/commit/xf86atomic.h?id=8c511950395ce496028bbc5ba30d9b9632690db6 https://cgit.freedesktop.org/mesa/drm/commit/meson.build?id=8de2696213d0f25a10a167b5fd6c312d6ce6a1af https://cgit.freedesktop.org/mesa/drm/commit/tests/nouveau/threaded.c?id=cd77f114ca0073f609fc89d22390152945e73107 Renumbered remaining patches, use .xz tarball provided by upstream. Removed md5 & sha1 hashes, not provided by upstream anymore. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
117 lines
2.4 KiB
Makefile
117 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# libdrm
|
|
#
|
|
################################################################################
|
|
|
|
LIBDRM_VERSION = 2.4.101
|
|
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.xz
|
|
LIBDRM_SITE = https://dri.freedesktop.org/libdrm
|
|
LIBDRM_LICENSE = MIT
|
|
LIBDRM_INSTALL_STAGING = YES
|
|
|
|
LIBDRM_DEPENDENCIES = \
|
|
libpthread-stubs \
|
|
host-pkgconf
|
|
|
|
LIBDRM_CONF_OPTS = \
|
|
-Dcairo-tests=false \
|
|
-Dmanpages=false
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
|
|
LIBDRM_DEPENDENCIES += libatomic_ops
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
|
LIBDRM_CFLAGS = $(TARGET_CFLAGS) -DAO_NO_SPARC_V9
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INTEL),y)
|
|
LIBDRM_CONF_OPTS += -Dintel=true
|
|
LIBDRM_DEPENDENCIES += libpciaccess
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dintel=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_RADEON),y)
|
|
LIBDRM_CONF_OPTS += -Dradeon=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dradeon=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_AMDGPU),y)
|
|
LIBDRM_CONF_OPTS += -Damdgpu=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Damdgpu=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_NOUVEAU),y)
|
|
LIBDRM_CONF_OPTS += -Dnouveau=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dnouveau=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VMWGFX),y)
|
|
LIBDRM_CONF_OPTS += -Dvmwgfx=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dvmwgfx=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_OMAP),y)
|
|
LIBDRM_CONF_OPTS += -Domap=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Domap=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_ETNAVIV),y)
|
|
LIBDRM_CONF_OPTS += -Detnaviv=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Detnaviv=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_EXYNOS),y)
|
|
LIBDRM_CONF_OPTS += -Dexynos=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dexynos=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_FREEDRENO),y)
|
|
LIBDRM_CONF_OPTS += -Dfreedreno=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dfreedreno=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_TEGRA),y)
|
|
LIBDRM_CONF_OPTS += -Dtegra=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dtegra=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_VC4),y)
|
|
LIBDRM_CONF_OPTS += -Dvc4=true
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dvc4=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBDRM_CONF_OPTS += -Dudev=true
|
|
LIBDRM_DEPENDENCIES += udev
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dudev=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
|
LIBDRM_CONF_OPTS += -Dvalgrind=true
|
|
LIBDRM_DEPENDENCIES += valgrind
|
|
else
|
|
LIBDRM_CONF_OPTS += -Dvalgrind=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM_INSTALL_TESTS),y)
|
|
LIBDRM_CONF_OPTS += -Dinstall-test-programs=true
|
|
ifeq ($(BR2_PACKAGE_CUNIT),y)
|
|
LIBDRM_DEPENDENCIES += cunit
|
|
endif
|
|
endif
|
|
|
|
$(eval $(meson-package))
|