diff options
Diffstat (limited to 'meta-amd-bsp/recipes-rocm/opencl/opencl.bb')
-rw-r--r-- | meta-amd-bsp/recipes-rocm/opencl/opencl.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-rocm/opencl/opencl.bb b/meta-amd-bsp/recipes-rocm/opencl/opencl.bb new file mode 100644 index 00000000..3a83afab --- /dev/null +++ b/meta-amd-bsp/recipes-rocm/opencl/opencl.bb @@ -0,0 +1,38 @@ +SUMMARY = "OpenCL components for development on AMD platforms" +DESCRIPTION = "This package provides binary runtime/development \ + components for utilizing OpenCL on AMD platforms." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +RDEPENDS_${PN} = "hsa ${PN}-bitcodes ${PN}-amd-drivers" + +SRC_URI = "file://opencl.tar.gz" +SRC_URI[md5sum] = "8ace16bb9d76824ffad1dc0d18089466" + +S = "${WORKDIR}/opencl" + +# Skip configure and compile +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +PACKAGES =+ "${PN}-bitcodes ${PN}-amd-drivers" + +FILES_${PN}-bitcodes = "${libdir}/bitcode/*" +FILES_${PN}-amd-drivers = "${libdir}/libcltrace.so \ + ${libdir}/libamdocl64.so" + +INSANE_SKIP_${PN} += "already-stripped build-deps ldflags" +INSANE_SKIP_${PN}-amd-drivers += "ldflags file-rdeps" + +do_install () { + # Install the binary components + install -d ${D}${bindir} + cp -r ${S}/bin/x86_64/* ${D}${bindir} + install -d ${D}${libdir} + cp -r ${S}/lib/x86_64/* ${D}${libdir} + install -d ${D}${includedir} + cp -r ${S}/include/* ${D}${includedir} + install -d ${D}${sysconfdir}/OpenCL + cp -r ${S}/etc/* ${D}${sysconfdir}/OpenCL +} |