package/ti-sgx-um: do not depend on the kernel driver, select it

Depending on the kernel driver is annoying because it means you can't
build ti-sgx-um without enabling a kernel. This prevents easy testing
of ti-sgx-um, and it also means ti-sgx-um is never built by the
autobuilders.

So instead, we select the kernel driver if a kernel is built by
Buildroot. This requires propagating the BR2_arm dependency from
ti-sgx-km to ti-sgx-um.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni
2022-01-08 17:59:12 +01:00
parent f8b6d3931f
commit 1f19ea1013

View File

@@ -1,17 +1,15 @@
comment "ti-sgx-um needs the ti-sgx-km driver"
depends on !BR2_PACKAGE_TI_SGX_KM
comment "ti-sgx-um needs udev and a glibc toolchain w/ threads" comment "ti-sgx-um needs udev and a glibc toolchain w/ threads"
depends on BR2_arm
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_USES_GLIBC \ depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_USES_GLIBC \
|| !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_TI_SGX_UM config BR2_PACKAGE_TI_SGX_UM
bool "ti-sgx-um" bool "ti-sgx-um"
depends on BR2_PACKAGE_TI_SGX_KM
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
depends on BR2_PACKAGE_HAS_UDEV depends on BR2_PACKAGE_HAS_UDEV
# pre-built binaries # pre-built binaries
depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_arm
select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_LIBDRM
select BR2_PACKAGE_LIBDRM_OMAP select BR2_PACKAGE_LIBDRM_OMAP
select BR2_PACKAGE_HAS_LIBEGL select BR2_PACKAGE_HAS_LIBEGL
@@ -21,6 +19,7 @@ config BR2_PACKAGE_TI_SGX_UM
select BR2_PACKAGE_HAS_POWERVR select BR2_PACKAGE_HAS_POWERVR
select BR2_PACKAGE_LIBFFI select BR2_PACKAGE_LIBFFI
select BR2_PACKAGE_WAYLAND select BR2_PACKAGE_WAYLAND
select BR2_PACKAGE_TI_SGX_KM if BR2_LINUX_KERNEL
help help
Graphics libraries for TI CPUs with SGX5xx GPU. Graphics libraries for TI CPUs with SGX5xx GPU.
This package supports AM335x, AM437x, AM4430 and AM5430. This package supports AM335x, AM437x, AM4430 and AM5430.