kumquat-buildroot/package/clinfo/clinfo.mk
Valentin Korenblit 42cefe7b2e package/clinfo: new package
This tool allows to verify if the OpenCL environment is set up correctly
and provides information related to the supported OpenCL platforms.

Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
Signed-off-by: Valentin Korenblit <valentinkorenblit@gmail.com>
[Thomas:
 - use the libopencl virtual package
 - add LICENSE to the license files]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-12-03 23:08:20 +01:00

22 lines
597 B
Makefile

################################################################################
#
# clinfo
#
################################################################################
CLINFO_VERSION = 2.2.18.03.26
CLINFO_SITE = $(call github,Oblomov,clinfo,$(CLINFO_VERSION))
CLINFO_LICENSE = CC0-1.0
CLINFO_LICENSE_FILES = legalcode.txt LICENSE
CLINFO_DEPENDENCIES = libopencl
define CLINFO_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define CLINFO_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/clinfo $(TARGET_DIR)/usr/bin/clinfo
endef
$(eval $(generic-package))