From 1f19ea10137e204d2478a7221053122b4e12e54b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 8 Jan 2022 17:59:12 +0100 Subject: [PATCH] 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 --- package/ti-sgx-um/Config.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package/ti-sgx-um/Config.in b/package/ti-sgx-um/Config.in index 2dea104b58..13c7cc8856 100644 --- a/package/ti-sgx-um/Config.in +++ b/package/ti-sgx-um/Config.in @@ -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" + depends on BR2_arm depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_USES_GLIBC \ || !BR2_TOOLCHAIN_HAS_THREADS config BR2_PACKAGE_TI_SGX_UM bool "ti-sgx-um" - depends on BR2_PACKAGE_TI_SGX_KM depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm depends on BR2_PACKAGE_HAS_UDEV # pre-built binaries depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_arm select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_LIBDRM_OMAP select BR2_PACKAGE_HAS_LIBEGL @@ -21,6 +19,7 @@ config BR2_PACKAGE_TI_SGX_UM select BR2_PACKAGE_HAS_POWERVR select BR2_PACKAGE_LIBFFI select BR2_PACKAGE_WAYLAND + select BR2_PACKAGE_TI_SGX_KM if BR2_LINUX_KERNEL help Graphics libraries for TI CPUs with SGX5xx GPU. This package supports AM335x, AM437x, AM4430 and AM5430.