mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-20 07:41:47 -09:00
package/kmsxx: add option for pykms
Add option to kmsxx to enable building pykms. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
23d71bfd96
commit
0710da403d
@@ -16,6 +16,13 @@ config BR2_PACKAGE_KMSXX
|
||||
|
||||
if BR2_PACKAGE_KMSXX
|
||||
|
||||
config BR2_PACKAGE_KMSXX_PYKMS
|
||||
bool "Enable Python bindings"
|
||||
depends on BR2_PACKAGE_PYTHON3
|
||||
select BR2_PACKAGE_PYTHON_PYBIND
|
||||
help
|
||||
This option enables the pykms python bindings.
|
||||
|
||||
config BR2_PACKAGE_KMSXX_INSTALL_TESTS
|
||||
bool "Install test programs"
|
||||
help
|
||||
|
||||
@@ -12,13 +12,18 @@ KMSXX_INSTALL_STAGING = YES
|
||||
KMSXX_DEPENDENCIES = fmt libdrm host-pkgconf
|
||||
KMSXX_CONF_OPTS = \
|
||||
-Dkmscube=false \
|
||||
-Dpykms=disabled \
|
||||
-Domap=disabled
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
KMSXX_CXXFLAGS += $(TARGET_CXXFLAGS) -O0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_KMSXX_PYKMS),y)
|
||||
KMSXX_CONF_OPTS += -Dpykms=enabled
|
||||
else
|
||||
KMSXX_CONF_OPTS += -Dpykms=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_KMSXX_INSTALL_TESTS),y)
|
||||
KMSXX_CONF_OPTS += -Dutils=true
|
||||
# extra handling for some utils not installed by default
|
||||
|
||||
Reference in New Issue
Block a user