|
@@ -51,6 +51,17 @@ comment "llvm support needs a toolchain not affected by GCC bug 64735"
|
|
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
|
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
|
depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
|
|
|
|
|
|
|
+# clang and libclc dependencies are satisfied by
|
|
|
|
+# BR2_PACKAGE_MESA3D_LLVM
|
|
|
|
+config BR2_PACKAGE_MESA3D_OPENCL
|
|
|
|
+ bool "OpenCL support"
|
|
|
|
+ depends on BR2_PACKAGE_MESA3D_LLVM
|
|
|
|
+ depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \
|
|
|
|
+ BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
|
|
|
|
+ select BR2_PACKAGE_CLANG
|
|
|
|
+ select BR2_PACKAGE_LIBCLC
|
|
|
|
+ select BR2_PACKAGE_HAS_LIBOPENCL
|
|
|
|
+
|
|
# inform the .mk file of gallium, dri or vulkan driver selection
|
|
# inform the .mk file of gallium, dri or vulkan driver selection
|
|
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
|
bool
|
|
bool
|
|
@@ -271,6 +282,9 @@ config BR2_PACKAGE_PROVIDES_LIBEGL
|
|
config BR2_PACKAGE_PROVIDES_LIBGLES
|
|
config BR2_PACKAGE_PROVIDES_LIBGLES
|
|
default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES
|
|
default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES
|
|
|
|
|
|
|
|
+config BR2_PACKAGE_PROVIDES_LIBOPENCL
|
|
|
|
+ default "mesa3d" if BR2_PACKAGE_MESA3D_OPENCL
|
|
|
|
+
|
|
endif # BR2_PACKAGE_MESA3D
|
|
endif # BR2_PACKAGE_MESA3D
|
|
|
|
|
|
comment "mesa3d needs a toolchain w/ C++, NPTL, dynamic library"
|
|
comment "mesa3d needs a toolchain w/ C++, NPTL, dynamic library"
|