opencl-headers: Initial recipe for OpenCL headers
PATCH 1/1 opencl-headers: Initial recipe for OpenCL headers
Add generic recipe for OpenCL API headers.
--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +19 -0
@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED" +LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/ + done +}
Signature · 1 line
1.9.1
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"
There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
Quoted 16 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +16
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/ + done +}
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?
Regards, Ankit
Quoted 18 lines
Quoted 17 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +16
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git" + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/ + done +}
Quoted 28 lines · Ankit Navik
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 8 lines
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?
Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Quoted 24 lines
Regards, Ankit
Quoted 18 lines
Quoted 7 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 19
Quoted 10 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +10
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/ + done +}--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 43 lines · Khem Raj
Quoted 28 lines · Ankit Navik
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 8 lines
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Quoted 2 lines
Regards, Ankit
Quoted 1 line
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 17
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +8
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/
Single file install? Not very optimized...
Quoted 13 lines
Quoted 8 lines
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 19
Quoted 2 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +2
-0+ done +}--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Denis,
Quoted 45 lines · Denys Dmytriyenko
Quoted 43 lines · Khem Raj
Quoted 28 lines · Ankit Navik
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 8 lines
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Quoted 2 lines
Regards, Ankit
Quoted 1 line
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 17
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +8
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Its not a single file, Installing all the header files.
Regards, Ankit
Quoted 15 lines
Quoted 15 lines
Quoted 10 lines
Quoted 5 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 19
Quoted 4 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +2
-0+ done +}--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 64 lines · Ankit Navik
Hi Denis,
Quoted 45 lines · Denys Dmytriyenko
Quoted 43 lines · Khem Raj
Quoted 28 lines · Ankit Navik
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 8 lines
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Quoted 2 lines
Regards, Ankit
Quoted 1 line
Quoted 16 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 17
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +8
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Quoted 1 line
Its not a single file, Installing all the header files.
It's a single file install in a for loop, hence my comment about being unoptimal. Why not use "cp *.h"?
Quoted 14 lines
Quoted 13 lines
Quoted 13 lines
Quoted 8 lines
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 19
Quoted 2 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +2
-0+ done +}--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 66 lines · Denys Dmytriyenko
Quoted 63 lines · Ankit Navik
Hi Denis,
Quoted 61 lines · Denys Dmytriyenko
Quoted 43 lines · Khem Raj
Quoted 28 lines · Ankit Navik
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 8 lines
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Quoted 2 lines
Regards, Ankit
Quoted 1 line
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 17
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +8
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Quoted 4 lines
Quoted 1 line
Its not a single file, Installing all the header files.
It's a single file install in a for loop, hence my comment about being unoptimal. Why not use "cp *.h"?
I agree its suboptimal use here. May be
install [OPTION]... -t DIRECTORY SOURCE
could be tamed to make it better.
however cp messes the file permissions up if not used with right opts. So I would not prefer it unless used with right
options to respect the file perms. Install does it correctly,
Quoted 72 lines · Khem Raj
Quoted 66 lines · Denys Dmytriyenko
Quoted 63 lines · Ankit Navik
Hi Denis,
Quoted 61 lines · Denys Dmytriyenko
Quoted 43 lines · Khem Raj
Quoted 28 lines · Ankit Navik
Hi Armin,
Quoted 24 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
Quoted 8 lines
Quoted 3 lines
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Quoted 2 lines
Regards, Ankit
Quoted 1 line
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 17
Quoted 8 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +8
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Quoted 4 lines
Quoted 1 line
Its not a single file, Installing all the header files.
It's a single file install in a for loop, hence my comment about being unoptimal. Why not use "cp *.h"?
Quoted 8 lines
I agree its suboptimal use here. May be
install [OPTION]... -t DIRECTORY SOURCE
could be tamed to make it better.
however cp messes the file permissions up if not used with right opts. So I would not prefer it unless used with right
options to respect the file perms. Install does it correctly,
Agree, cp would require passing correct options, but there are plenty of examples alreay.
Signature · 1 line
Denys
Quoted 16 lines · Denys Dmytriyenko
Quoted 16 lines
Quoted 11 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Its not a single file, Installing all the header files.
It's a single file install in a for loop, hence my comment about being unoptimal. Why not use "cp *.h"?
I agree its suboptimal use here. May be
install [OPTION]... -t DIRECTORY SOURCE
Quoted 7 lines
Quoted 4 lines
could be tamed to make it better.
however cp messes the file permissions up if not used with right opts. So I would not prefer it unless used with right
options to respect the file perms. Install does it correctly,Agree, cp would require passing correct options, but there are plenty of examples alreay.
If we're bikeshedding a micro-optimisation then surely this is optimal:
install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.hThat combines the mkdir and cp in one command.
Ross
Quoted 22 lines · Ross
Quoted 21 lines · Denys Dmytriyenko
Quoted 20 lines
Quoted 11 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Its not a single file, Installing all the header files.
It's a single file install in a for loop, hence my comment about being unoptimal. Why not use "cp *.h"?
I agree its suboptimal use here. May be
install [OPTION]... -t DIRECTORY SOURCE
could be tamed to make it better.
however cp messes the file permissions up if not used with right opts. So I would not prefer it unless used with right
options to respect the file perms. Install does it correctly,
Quoted 8 lines
Quoted 2 lines
Agree, cp would require passing correct options, but there are plenty of examples alreay.
If we're bikeshedding a micro-optimisation then surely this is optimal:
install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.hThat combines the mkdir and cp in one command.
+1
And who said bikeshedding is a waste of time? :)
Signature · 1 line
Denys
Hi Ross,
Quoted 23 lines · Ross
Quoted 21 lines · Denys Dmytriyenko
Quoted 20 lines
Quoted 11 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review
Quoted 4 lines
(quoted diff) +4
-0+do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/Single file install? Not very optimized...
Its not a single file, Installing all the header files.
It's a single file install in a for loop, hence my comment about being unoptimal. Why not use "cp *.h"?
I agree its suboptimal use here. May be
install [OPTION]... -t DIRECTORY SOURCE
could be tamed to make it better.
however cp messes the file permissions up if not used with right opts. So I would not prefer it unless used with right
options to respect the file perms. Install does it correctly,
Quoted 8 lines
Quoted 2 lines
Agree, cp would require passing correct options, but there are plenty of examples alreay.
If we're bikeshedding a micro-optimisation then surely this is optimal:
install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.hThat combines the mkdir and cp in one command.
Thank you for your suggestion, but this one line command still throws error of No such file or directory.
Following line will solve:
install -d ${D}${includedir}/CL/
install -m 0644 -t ${D}${includedir}/CL ${S}/CL/*.h
I'll send this patch in v3.
Regards, Ankit
Quoted 7 lines
Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Raj,
Quoted 34 lines · Khem Raj
Quoted 32 lines · Ankit Navik
Hi Armin,
Quoted 27 lines · On Thu, Oct 4, 2018 at 4:40 AM akuster808 <[email protected]> wrote:
Quoted 14 lines · Ankit Navik
Add generic recipe for OpenCL API headers.
Signed-off-by Ankit Navik <[email protected]>--- .../recipes-core/opencl-headers/opencl-headers_git.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bbmeta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +0
-0meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 3
Quoted 3 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +3
-0@@ -0,0 +1,19 @@ +SUMMARY = "OpenCL API Headers" +DESCRIPTION = "OpenCL compute API headers from Khronos Group" +LICENSE = "CLOSED"There is a license file at the repo. Would adding a "Khronos" license be more appropriate?
https://github.com/KhronosGroup/OpenCL-Headers/blob/master/LICENSE
- armin
Quoted 7 lines
Quoted 4 lines
I have tried adding "Khronos", but it was throwing QA error for license. Hence kept it as closed.
Any other suggestion for license ?Please add a template for this license into meta-oe/licenses and then reference it in relevant recipes.
Thanks for your suggestion, will incorporate in v2 patch.
Quoted 25 lines
Quoted 25 lines
Regards, Ankit
Quoted 18 lines
Quoted 7 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +6
-0+LIC_FILES_CHKSUM = "file://CL/opencl.h;beginline=1;endline=27;md5=687394644e8c4ec4fd3d77f2f86bc042" +SECTION = "base" + +S = "${WORKDIR}/git" +SRCREV = "40c5d226c7c0706f0176884e9b94b3886679c983" +SRC_URI = "git://github.com/KhronosGroup/OpenCL-Headers.git"meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb line 19
Quoted 10 lines
meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb new file +10
-0+ +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}${includedir}/CL/ + for f in ${S}/CL/*.h; do + install -m 0644 $f ${D}${includedir}/CL/ + done +}--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel