summaryrefslogtreecommitdiffstats
path: root/meta-arago-extras/recipes-ti/ocl/clocl_git.bb
blob: 52deaab81b6036559c4922caa946b5c4eada1bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DESCRIPTION = "TI OpenCL offline C compiler for compute devices"
HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/opencl/index.html"
LICENSE = "BSD-3-Clause"

include ocl.inc

PR = "${INC_PR}.0"

DEPENDS = "ti-llvm3.6 ti-llvm3.6-native boost"

S = "${WORKDIR}/git/host"

export WANT_LLVM_RELEASE = "3.6-ti"

TARGET:class-target = "arm"
TARGET:class-native = "x86"
TARGET:class-nativesdk = "x86"

EXTRA_OEMAKE = " -C ${S}/clocl \
                 _PRODUCT_VERSION=${PV} \
                 TARGET=${TARGET} \
                 LLVM_CONFIG_EXE=${STAGING_BINDIR_NATIVE}/llvm-config \
"

do_compile() {
  oe_runmake
}

do_install() {
  install -d ${D}${bindir}
  install -m 755 ${S}/clocl/${TARGET}/clocl ${D}${bindir}
}

RDEPENDS:${PN} += "ti-cgt6x"
BBCLASSEXTEND = "native nativesdk"