[meta-xilinx] [meta-xilinx-bsp][PATCH 1/2] opencl-clhpp: Allow empty packages to be built
Manjukumar Matha
manjukumar.harthikote-matha at xilinx.com
Fri Jun 28 16:00:00 PDT 2019
From: Alejandro Enedino Hernandez Samaniego <alejandro.enedino.hernandez-samaniego at xilinx.com>
The opencl-clhpp package simply contains headers, hence they are all
contained within the opencl-clhpp-dev package.
This causes the opencl-clhpp to be empty and the default behavior is to
not create empty packages, although due to rpm packaging behavior a
dependency exists between the opencl-clhpp-dev package and the
opencl-clhpp, which causes an error when creating the rootfs.
Use ALLOW_EMPTY_${PN}= "1" to allow the empty package to be created,
that way dependencies are fullfilled when creating the rootfs.
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr at xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
---
meta-xilinx-bsp/recipes-xrt/opencl-clhpp/opencl-clhpp_git.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-xilinx-bsp/recipes-xrt/opencl-clhpp/opencl-clhpp_git.bb b/meta-xilinx-bsp/recipes-xrt/opencl-clhpp/opencl-clhpp_git.bb
index 3e0eaf3..9af4442 100644
--- a/meta-xilinx-bsp/recipes-xrt/opencl-clhpp/opencl-clhpp_git.bb
+++ b/meta-xilinx-bsp/recipes-xrt/opencl-clhpp/opencl-clhpp_git.bb
@@ -25,3 +25,5 @@ do_install () {
install -d ${D}${includedir}/CL/
install -m 0644 ${S}/input_cl2.hpp ${D}${includedir}/CL/cl2.hpp
}
+
+ALLOW_EMPTY_${PN} = "1"
--
2.7.4
More information about the meta-xilinx
mailing list