All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] opencl-headers: Initial recipe for OpenCL headers
@ 2018-10-16  4:40 Ankit Navik
  2018-10-16 11:31 ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: Ankit Navik @ 2018-10-16  4:40 UTC (permalink / raw)
  To: openembedded-devel

Add generic recipe for OpenCL API headers.

Suggested-by: Burton, Ross <ross.burton@intel.com>
Signed-off-by: Ankit Navik <ankit.tarot@gmail.com>
---
 .../recipes-core/opencl-headers/opencl-headers_git.bb   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb

diff --git a/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb b/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb
new file mode 100644
index 0000000..818fd31
--- /dev/null
+++ b/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb
@@ -0,0 +1,17 @@
+SUMMARY  = "OpenCL API Headers"
+DESCRIPTION = "OpenCL compute API headers from Khronos Group"
+LICENSE  = "Khronos"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b"
+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/
+	install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] opencl-headers: Initial recipe for OpenCL headers
  2018-10-16  4:40 [PATCH v3] opencl-headers: Initial recipe for OpenCL headers Ankit Navik
@ 2018-10-16 11:31 ` Burton, Ross
  2018-10-16 12:37   ` Ankit Navik
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2018-10-16 11:31 UTC (permalink / raw)
  To: Ankit Navik; +Cc: OpenEmbedded Devel List

On Tue, 16 Oct 2018 at 05:43, Ankit Navik <ankit.tarot@gmail.com> wrote:

> +do_install () {
> +       install -d ${D}${includedir}/CL/
> +       install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
> +}

-D to install is 'create directories' which you've already done in the
previous line, so that can be removed.

If you're removing -D then a more idiomatic form would be:

+       install -d ${D}${includedir}/CL/
+       install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL

Ross


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] opencl-headers: Initial recipe for OpenCL headers
  2018-10-16 11:31 ` Burton, Ross
@ 2018-10-16 12:37   ` Ankit Navik
  2018-10-16 13:46     ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Ankit Navik @ 2018-10-16 12:37 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-devel

Hi Ross
On Tue, Oct 16, 2018 at 5:01 PM Burton, Ross <ross.burton@intel.com> wrote:
>
> On Tue, 16 Oct 2018 at 05:43, Ankit Navik <ankit.tarot@gmail.com> wrote:
>
> > +do_install () {
> > +       install -d ${D}${includedir}/CL/
> > +       install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
> > +}
>
> -D to install is 'create directories' which you've already done in the
> previous line, so that can be removed.
>
> If you're removing -D then a more idiomatic form would be:
>
> +       install -d ${D}${includedir}/CL/
> +       install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
Opps, missed -D.
Cool. I will use your suggestion.

Thanks, Ankit
>
> Ross


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] opencl-headers: Initial recipe for OpenCL headers
  2018-10-16 12:37   ` Ankit Navik
@ 2018-10-16 13:46     ` Khem Raj
  2018-10-16 14:06       ` Ankit Navik
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2018-10-16 13:46 UTC (permalink / raw)
  To: Ankit Navik; +Cc: openembeded-devel

On Tue, Oct 16, 2018 at 5:37 AM Ankit Navik <ankit.tarot@gmail.com> wrote:
>
> Hi Ross
> On Tue, Oct 16, 2018 at 5:01 PM Burton, Ross <ross.burton@intel.com> wrote:
> >
> > On Tue, 16 Oct 2018 at 05:43, Ankit Navik <ankit.tarot@gmail.com> wrote:
> >
> > > +do_install () {
> > > +       install -d ${D}${includedir}/CL/
> > > +       install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
> > > +}
> >
> > -D to install is 'create directories' which you've already done in the
> > previous line, so that can be removed.
> >
> > If you're removing -D then a more idiomatic form would be:
> >
> > +       install -d ${D}${includedir}/CL/
> > +       install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
> Opps, missed -D.
> Cool. I will use your suggestion.

you just need single line there in do_install

 install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h


>
> Thanks, Ankit
> >
> > Ross
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] opencl-headers: Initial recipe for OpenCL headers
  2018-10-16 13:46     ` Khem Raj
@ 2018-10-16 14:06       ` Ankit Navik
  2018-10-16 15:12         ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Ankit Navik @ 2018-10-16 14:06 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

Hi Raj,
On Tue, Oct 16, 2018 at 7:17 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Tue, Oct 16, 2018 at 5:37 AM Ankit Navik <ankit.tarot@gmail.com> wrote:
> >
> > Hi Ross
> > On Tue, Oct 16, 2018 at 5:01 PM Burton, Ross <ross.burton@intel.com> wrote:
> > >
> > > On Tue, 16 Oct 2018 at 05:43, Ankit Navik <ankit.tarot@gmail.com> wrote:
> > >
> > > > +do_install () {
> > > > +       install -d ${D}${includedir}/CL/
> > > > +       install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
> > > > +}
> > >
> > > -D to install is 'create directories' which you've already done in the
> > > previous line, so that can be removed.
> > >
> > > If you're removing -D then a more idiomatic form would be:
> > >
> > > +       install -d ${D}${includedir}/CL/
> > > +       install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
> > Opps, missed -D.
> > Cool. I will use your suggestion.
>
> you just need single line there in do_install
>
>  install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
Single line solution is not working as I said in earlier email, it
throws an error as No such file and directory.
Regards, Ankit
>
>
> >
> > Thanks, Ankit
> > >
> > > Ross
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] opencl-headers: Initial recipe for OpenCL headers
  2018-10-16 14:06       ` Ankit Navik
@ 2018-10-16 15:12         ` Khem Raj
  2018-10-16 17:49           ` [PATCH v4] " Ankit Navik
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2018-10-16 15:12 UTC (permalink / raw)
  To: Ankit Navik; +Cc: openembeded-devel

On Tue, Oct 16, 2018 at 7:06 AM Ankit Navik <ankit.tarot@gmail.com> wrote:
>
> Hi Raj,
> On Tue, Oct 16, 2018 at 7:17 PM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Tue, Oct 16, 2018 at 5:37 AM Ankit Navik <ankit.tarot@gmail.com> wrote:
> > >
> > > Hi Ross
> > > On Tue, Oct 16, 2018 at 5:01 PM Burton, Ross <ross.burton@intel.com> wrote:
> > > >
> > > > On Tue, 16 Oct 2018 at 05:43, Ankit Navik <ankit.tarot@gmail.com> wrote:
> > > >
> > > > > +do_install () {
> > > > > +       install -d ${D}${includedir}/CL/
> > > > > +       install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
> > > > > +}
> > > >
> > > > -D to install is 'create directories' which you've already done in the
> > > > previous line, so that can be removed.
> > > >
> > > > If you're removing -D then a more idiomatic form would be:
> > > >
> > > > +       install -d ${D}${includedir}/CL/
> > > > +       install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
> > > Opps, missed -D.
> > > Cool. I will use your suggestion.
> >
> > you just need single line there in do_install
> >
> >  install -m 0644 -D -t ${D}${includedir}/CL ${S}/CL/*.h
> Single line solution is not working as I said in earlier email, it
> throws an error as No such file and directory.

yes it wont now I see that its using wildcards. So send the final
patch with Ross's suggestions and we can move on

> Regards, Ankit
> >
> >
> > >
> > > Thanks, Ankit
> > > >
> > > > Ross
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v4] opencl-headers: Initial recipe for OpenCL headers
  2018-10-16 15:12         ` Khem Raj
@ 2018-10-16 17:49           ` Ankit Navik
  0 siblings, 0 replies; 7+ messages in thread
From: Ankit Navik @ 2018-10-16 17:49 UTC (permalink / raw)
  To: openembedded-devel

Add generic recipe for OpenCL API headers.

Suggested-by: Burton, Ross <ross.burton@intel.com>
Signed-off-by: Ankit Navik <ankit.tarot@gmail.com>
---
 .../recipes-core/opencl-headers/opencl-headers_git.bb   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb

diff --git a/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb b/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb
new file mode 100644
index 0000000..dec1bea
--- /dev/null
+++ b/meta-oe/recipes-core/opencl-headers/opencl-headers_git.bb
@@ -0,0 +1,17 @@
+SUMMARY  = "OpenCL API Headers"
+DESCRIPTION = "OpenCL compute API headers from Khronos Group"
+LICENSE  = "Khronos"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=dcefc90f4c3c689ec0c2489064e7273b"
+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/
+	install -m 0644 ${S}/CL/*.h ${D}${includedir}/CL
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-16 17:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16  4:40 [PATCH v3] opencl-headers: Initial recipe for OpenCL headers Ankit Navik
2018-10-16 11:31 ` Burton, Ross
2018-10-16 12:37   ` Ankit Navik
2018-10-16 13:46     ` Khem Raj
2018-10-16 14:06       ` Ankit Navik
2018-10-16 15:12         ` Khem Raj
2018-10-16 17:49           ` [PATCH v4] " Ankit Navik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.