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:
Paul Elder
2026-10-05 15:58:15 +09:00
committed by Thomas Petazzoni
parent 23d71bfd96
commit 0710da403d
2 changed files with 13 additions and 1 deletions

View File

@@ -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

View File

@@ -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