[meta-oe,5/6] opencl-headers: Update v2020.12.18 -> v2022.01.04

Message ID 20220314085646.38283-5-daniel@qtec.com
State New
Headers show
Series [meta-oe,1/6] zbar: Update 1.23.1 -> 1.23.92+4e0f618 | expand

Commit Message

Daniel Gomez March 14, 2022, 8:56 a.m. UTC
- Add PV to include package version + git revision.
- Add ALLOW_EMPTY to prevent error [1] when installing package in image.
- Change branch name master -> main according to upstream repository.

[1]: opencl-headers installation error:
E: Package 'opencl-headers' has no installation candidate

Signed-off-by: Daniel Gomez <daniel@qtec.com>
---
 meta-oe/recipes-core/opencl/opencl-headers_git.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--
2.34.1

Patch

diff --git a/meta-oe/recipes-core/opencl/opencl-headers_git.bb b/meta-oe/recipes-core/opencl/opencl-headers_git.bb
index f77bf46d2..5e8e6f07f 100644
--- a/meta-oe/recipes-core/opencl/opencl-headers_git.bb
+++ b/meta-oe/recipes-core/opencl/opencl-headers_git.bb
@@ -5,12 +5,13 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 SECTION = "base"

 S = "${WORKDIR}/git"
-# v2020.12.18
-SRCREV = "c57ba81c460ee97b6b9d0b8d18faf5ba6883114b"
-SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=master;protocol=https"
+PV = "v2022.01.04+git${SRCPV}"
+SRCREV = "59ac4dc2f282286d8db83143686cfe37ec658b84"
+SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git;branch=main;protocol=https"

 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
+ALLOW_EMPTY:${PN} = "1"

 do_install () {
 	install -d ${D}${includedir}/CL/