2018-10-20 16:34:49 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libclc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-10-05 19:04:12 +02:00
|
|
|
# Use the latest commit from release_90 branch.
|
|
|
|
LIBCLC_VERSION = d1cbc92e2ceee59963f5c3a576382e5bba31f060
|
2018-10-20 16:34:49 +02:00
|
|
|
LIBCLC_SITE = https://git.llvm.org/git/libclc
|
|
|
|
LIBCLC_SITE_METHOD = git
|
2019-10-05 19:04:12 +02:00
|
|
|
LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT
|
2018-10-20 16:34:49 +02:00
|
|
|
LIBCLC_LICENSE_FILES = LICENSE.TXT
|
|
|
|
|
|
|
|
LIBCLC_DEPENDENCIES = host-clang host-llvm
|
|
|
|
LIBCLC_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
# C++ compiler is used to build a small tool (prepare-builtins) for the host.
|
|
|
|
# It must be built with the C++ compiler from the host.
|
|
|
|
#
|
|
|
|
# The headers are installed in /usr/share and not /usr/include,
|
|
|
|
# because they are needed at runtime on the target to build the OpenCL
|
|
|
|
# kernels.
|
|
|
|
LIBCLC_CONF_OPTS = \
|
|
|
|
--with-llvm-config=$(HOST_DIR)/usr/bin/llvm-config \
|
|
|
|
--prefix=/usr \
|
|
|
|
--includedir=/usr/share \
|
|
|
|
--pkgconfigdir=/usr/lib/pkgconfig \
|
2020-04-06 18:50:44 +02:00
|
|
|
--with-cxx-compiler=$(HOSTCXX_NOCCACHE)
|
2018-10-20 16:34:49 +02:00
|
|
|
|
|
|
|
define LIBCLC_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure.py $(LIBCLC_CONF_OPTS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCLC_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCLC_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCLC_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|