Hi,
Do you have Cmake based build or bitbake recipe for OpenCSD project? My project is CMAKE based. I want to integrate OpenCSD with it.
Regards, Subhasish
On 2020-03-16 23:16 +0530, subhasish Karmakar wrote:
Hi,
Do you have Cmake based build or bitbake recipe for OpenCSD project? My project is CMAKE based. I want to integrate OpenCSD with it.
What is your platform?
On debian/ubuntu libopencsd comes with a pkgconfig file which means cmake should find the library and headers in the normal way (via FINDPKG IIRC). Shouldn't be any special config needed. It would make sense for upstream to ship that file.
Not sure what happens on other platforms, but it's a standard library so shouldn't need any special recipie.
Wookey
Hi,
There is no CMake based build for OpenCSD, nor do we have any plans to create one at this time. However, as Wookie says, it should be possible to treat it as any other imported library in CMake. The main OpenCSD makefile comes with an install target, so it should be installable on your platform if not present. I don't have much experience with CMake, but briefly looking at the documentation it would seem that there of plenty of commands / examples for importing and using existing libraries
Regards
Mike
On Mon, 16 Mar 2020 at 17:52, Wookey wookey@wookware.org wrote:
On 2020-03-16 23:16 +0530, subhasish Karmakar wrote:
Hi,
Do you have Cmake based build or bitbake recipe for OpenCSD project? My project is CMAKE based. I want to integrate OpenCSD with it.
What is your platform?
On debian/ubuntu libopencsd comes with a pkgconfig file which means cmake should find the library and headers in the normal way (via FINDPKG IIRC). Shouldn't be any special config needed. It would make sense for upstream to ship that file.
Not sure what happens on other platforms, but it's a standard library so shouldn't need any special recipie.
Wookey
Principal hats: Linaro, Debian, Wookware, ARM http://wookware.org/ _______________________________________________ CoreSight mailing list CoreSight@lists.linaro.org https://lists.linaro.org/mailman/listinfo/coresight
Hi Subhasish,
On Mon, Mar 16, 2020 at 11:16:29PM +0530, subhasish Karmakar wrote:
Hi,
Do you have Cmake based build or bitbake recipe for OpenCSD project?
If you are looking for OE recipe, you could refer the patch [1]; I am trying to upstream it into meta-arm layer, still pending.
BTW, except OpenCSD recipe, if you want to integrate OpenCSD into perf tool, you should apply below change to meta layer:
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index e005eb082b..c0a9f37e0b 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -26,6 +26,7 @@ PACKAGECONFIG[jvmti] = ",NO_JVMTI=1" PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit" PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native" PACKAGECONFIG[cap] = ",,libcap" +PACKAGECONFIG[opencsd] = "CORESIGHT=1,,opencsd"
Thanks, Leo
[1] https://lists.yoctoproject.org/g/meta-arm/topic/patch_v1_resend_opencsd/7176...
My project is CMAKE based. I want to integrate OpenCSD with it.
Regards, Subhasish
Thanks alot Leo,
I'll try your patch. I am just looking to use OpenCSD library in my existing project for trace decoding.
On Tue, Mar 17, 2020, 15:17 Leo Yan leo.yan@linaro.org wrote:
Hi Subhasish,
On Mon, Mar 16, 2020 at 11:16:29PM +0530, subhasish Karmakar wrote:
Hi,
Do you have Cmake based build or bitbake recipe for OpenCSD project?
If you are looking for OE recipe, you could refer the patch [1]; I am trying to upstream it into meta-arm layer, still pending.
BTW, except OpenCSD recipe, if you want to integrate OpenCSD into perf tool, you should apply below change to meta layer:
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/ perf.bb index e005eb082b..c0a9f37e0b 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -26,6 +26,7 @@ PACKAGECONFIG[jvmti] = ",NO_JVMTI=1" PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit" PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native" PACKAGECONFIG[cap] = ",,libcap" +PACKAGECONFIG[opencsd] = "CORESIGHT=1,,opencsd"
Thanks, Leo
[1] https://lists.yoctoproject.org/g/meta-arm/topic/patch_v1_resend_opencsd/7176...
My project is CMAKE based. I want to integrate OpenCSD with it.
Regards, Subhasish