libdrm: add option to build the nouveau and radeon driver
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
This commit is contained in:
parent
55ed772eba
commit
240af18f30
2 changed files with 18 additions and 4 deletions
|
@ -8,4 +8,16 @@ config LIBDRM_INTEL
|
||||||
help
|
help
|
||||||
Installs the Intel driver.
|
Installs the Intel driver.
|
||||||
|
|
||||||
|
config LIBDRM_NOUVEAU
|
||||||
|
bool "Nouveau support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Installs the Nouveau driver.
|
||||||
|
|
||||||
|
config LIBDRM_RADEON
|
||||||
|
bool "Radeon support"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Installs the Radeon driver.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libdrm
|
PKG_NAME:=libdrm
|
||||||
PKG_VERSION:=2.4.104
|
PKG_VERSION:=2.4.104
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
|
PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
|
||||||
|
@ -17,7 +17,9 @@ PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_LIBDRM_INTEL
|
CONFIG_LIBDRM_INTEL \
|
||||||
|
CONFIG_LIBDRM_NOUVEAU \
|
||||||
|
CONFIG_LIBDRM_RADEON
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_DEPENDS:=meson/host
|
PKG_BUILD_DEPENDS:=meson/host
|
||||||
|
@ -45,9 +47,9 @@ endef
|
||||||
|
|
||||||
MESON_ARGS += \
|
MESON_ARGS += \
|
||||||
$(if $(CONFIG_LIBDRM_INTEL),-Dintel=true -Dlibkms=true,-Dintel=false -Dlibkms=false) \
|
$(if $(CONFIG_LIBDRM_INTEL),-Dintel=true -Dlibkms=true,-Dintel=false -Dlibkms=false) \
|
||||||
-Dradeon=false \
|
-Dradeon=$(if $(CONFIG_LIBDRM_RADEON),true,false) \
|
||||||
-Damdgpu=false \
|
-Damdgpu=false \
|
||||||
-Dnouveau=false \
|
-Dnouveau=$(if $(CONFIG_LIBDRM_NOUVEAU),true,false) \
|
||||||
-Dvmwgfx=false \
|
-Dvmwgfx=false \
|
||||||
-Domap=false \
|
-Domap=false \
|
||||||
-Dexynos=false \
|
-Dexynos=false \
|
||||||
|
|
Loading…
Reference in a new issue