mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 01:26:50 +00:00
Currently packages like Mesa list 'opengl' and 'vulkan' as required DISTRO_FEATURES, disabling GPU support for non-graphics-enabled cases. However in the modern world it's a perfectly fine usecase to have a headless box with GPU being used by OpenCL only. The OE-Core has added the 'opencl' DISTRO_FEATURE, making it possible to specify whether OpenCL is enabled or not and also making it possible to enable GPU packages if only OpenCL is required. Follow the example of GLVND and vulkan-loader and disable OpenCL ICD packages if corresponding feature is not enabled. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
23 lines
708 B
BlitzBasic
23 lines
708 B
BlitzBasic
SUMMARY = "Enumerate all known properties of OpenCL platform and devices."
|
|
DESCRIPTION = "clinfo is a simple command-line application that enumerates \
|
|
all possible (known) properties of the OpenCL platform and devices \
|
|
available on the system."
|
|
HOMEPAGE = "https://github.com/Oblomov/clinfo"
|
|
|
|
LICENSE = "CC0-1.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=fd8857f774dfb0eefe1e80c8f9240a7e"
|
|
|
|
inherit features_check
|
|
|
|
REQUIRED_DISTRO_FEATURES = "opencl"
|
|
|
|
SRC_URI = "git://github.com/Oblomov/clinfo.git;protocol=https;branch=master"
|
|
|
|
SRCREV = "748c3930a9b9cb826e631d77439e2cb8f84f5bcf"
|
|
|
|
DEPENDS += "opencl-headers virtual/libopencl1"
|
|
|
|
do_install() {
|
|
oe_runmake install PREFIX=${D}${prefix} MANDIR=${D}${mandir}
|
|
}
|