OpenCSD: Support for Arm CoreSight decode lib
PATCH 1/1 OpenCSD: Support for Arm CoreSight decode lib
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
--- .../recipes-devtools/opencsd/opencsd_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-oe/recipes-devtools/opencsd/opencsd_git.bb
meta-oe/recipes-devtools/opencsd/opencsd_git.bb new file +28 -0
@@ -0,0 +1,28 @@ +SUMMARY = "OpenCSD - An open source CoreSight(tm) Trace Decode library" +HOMEPAGE = "https://github.com/Linaro/OpenCSD" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5" + +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=http;branch=master" +SRCREV = "03c194117971e4ad0598df29395757ced2e6e9bd" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(x86_64.*|aarch64.*)-linux" + +EXTRA_OEMAKE = "ARCH='${TARGET_ARCH}' \ + CROSS_COMPILE='${TARGET_SYS}-' \ + CC='${CC}' \ + CXX='${CXX}' \ + LINKER='${CXX}' \ + LINUX64=1 \ + DEBUG=1 \ + " + +do_compile() { + ( cd ${S}/decoder/build/linux; oe_runmake ${EXTRA_OEMAKE}; cd - ) +} + +do_install() { + ( cd ${S}/decoder/build/linux; oe_runmake PREFIX=${D}/usr install; cd - ) +}
Signature · 1 line
2.17.1
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
Quoted 41 lines
Signed-off-by Leo Yan <[email protected]>--- .../recipes-devtools/opencsd/opencsd_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-oe/recipes-devtools/opencsd/opencsd_git.bbmeta-oe/recipes-devtools/opencsd/opencsd_git.bb new file +28
-0@@ -0,0 +1,28 @@ +SUMMARY = "OpenCSD - An open source CoreSight(tm) Trace Decode library" +HOMEPAGE = "https://github.com/Linaro/OpenCSD" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5" + +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=http;branch=master" +SRCREV = "03c194117971e4ad0598df29395757ced2e6e9bd" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(x86_64.*|aarch64.*)-linux" + +EXTRA_OEMAKE = "ARCH='${TARGET_ARCH}' \ + CROSS_COMPILE='${TARGET_SYS}-' \ + CC='${CC}' \ + CXX='${CXX}' \ + LINKER='${CXX}' \ + LINUX64=1 \ + DEBUG=1 \ + " + +do_compile() { + ( cd ${S}/decoder/build/linux; oe_runmake ${EXTRA_OEMAKE}; cd - ) +} + +do_install() { + ( cd ${S}/decoder/build/linux; oe_runmake PREFIX=${D}/usr install; cd - ) +}
Quoted 7 lines · Scott Murray
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
I had the exact thought and am really glad I read this before saying the same thing!
Philip
Quoted 42 lines
Quoted 42 lines
Signed-off-by Leo Yan <[email protected]>--- .../recipes-devtools/opencsd/opencsd_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-oe/recipes-devtools/opencsd/opencsd_git.bbmeta-oe/recipes-devtools/opencsd/opencsd_git.bb new file +28
-0@@ -0,0 +1,28 @@ +SUMMARY = "OpenCSD - An open source CoreSight(tm) Trace Decode library" +HOMEPAGE = "https://github.com/Linaro/OpenCSD" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5" + +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=http;branch=master" +SRCREV = "03c194117971e4ad0598df29395757ced2e6e9bd" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(x86_64.*|aarch64.*)-linux" + +EXTRA_OEMAKE = "ARCH='${TARGET_ARCH}' \ + CROSS_COMPILE='${TARGET_SYS}-' \ + CC='${CC}' \ + CXX='${CXX}' \ + LINKER='${CXX}' \ + LINUX64=1 \ + DEBUG=1 \ + " + +do_compile() { + ( cd ${S}/decoder/build/linux; oe_runmake ${EXTRA_OEMAKE}; cd - ) +} + +do_install() { + ( cd ${S}/decoder/build/linux; oe_runmake PREFIX=${D}/usr install; cd - ) +}
Quoted 11 lines · Philip Balister
Quoted 7 lines · Scott Murray
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
I had the exact thought and am really glad I read this before saying the same thing!
+1
Quoted 50 lines
Philip
Quoted 42 lines
Quoted 42 lines
Signed-off-by Leo Yan <[email protected]>--- .../recipes-devtools/opencsd/opencsd_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-oe/recipes-devtools/opencsd/opencsd_git.bbmeta-oe/recipes-devtools/opencsd/opencsd_git.bb new file +28
-0@@ -0,0 +1,28 @@ +SUMMARY = "OpenCSD - An open source CoreSight(tm) Trace Decode library" +HOMEPAGE = "https://github.com/Linaro/OpenCSD" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5" + +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=http;branch=master" +SRCREV = "03c194117971e4ad0598df29395757ced2e6e9bd" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(x86_64.*|aarch64.*)-linux" + +EXTRA_OEMAKE = "ARCH='${TARGET_ARCH}' \ + CROSS_COMPILE='${TARGET_SYS}-' \ + CC='${CC}' \ + CXX='${CXX}' \ + LINKER='${CXX}' \ + LINUX64=1 \ + DEBUG=1 \ + " + +do_compile() { + ( cd ${S}/decoder/build/linux; oe_runmake ${EXTRA_OEMAKE}; cd - ) +} + +do_install() { + ( cd ${S}/decoder/build/linux; oe_runmake PREFIX=${D}/usr install; cd - ) +}Signature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 20 lines
——————————————— Josef Holzmayr Software Developer Embedded Systems Tel: +49 8444 9204-48 Fax: +49 8444 9204-50 R-S-I Elektrotechnik GmbH & Co. KG Woelkestrasse 11 D-85301 Schweitenkirchen www.rsi-elektrotechnik.de ——————————————— Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393 Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg Ust-IdNr: DE 128592548 _____________________________________________________________ Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363 Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg USt-IdNr.: DE 128592548
Quoted 8 lines · Scott Murray
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
it also says x86_64 in COMPATIBLE_HOST, while coresight seems to be arm specific is this not supposed to be so ?
Quoted 41 lines
Quoted 41 lines
Signed-off-by Leo Yan <[email protected]>--- .../recipes-devtools/opencsd/opencsd_git.bb | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+)create mode 100644 meta-oe/recipes-devtools/opencsd/opencsd_git.bb
meta-oe/recipes-devtools/opencsd/opencsd_git.bb new file +28
-0@@ -0,0 +1,28 @@ +SUMMARY = "OpenCSD - An open source CoreSight(tm) Trace Decode library" +HOMEPAGE = "https://github.com/Linaro/OpenCSD" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5" + +SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=http;branch=master" +SRCREV = "03c194117971e4ad0598df29395757ced2e6e9bd" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(x86_64.*|aarch64.*)-linux" + +EXTRA_OEMAKE = "ARCH='${TARGET_ARCH}' \ + CROSS_COMPILE='${TARGET_SYS}-' \ + CC='${CC}' \ + CXX='${CXX}' \ + LINKER='${CXX}' \ + LINUX64=1 \ + DEBUG=1 \ + " + +do_compile() { + ( cd ${S}/decoder/build/linux; oe_runmake ${EXTRA_OEMAKE}; cd - ) +} + +do_install() { + ( cd ${S}/decoder/build/linux; oe_runmake PREFIX=${D}/usr install; cd - ) +}
Hi all,
Quoted 10 lines · Khem Raj
Quoted 7 lines · Scott Murray
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
Thanks for the suggestion, Scott.
To be honest, I didn't know meta-arm layer before; seems to me it makes sense to integrate this recipe into meta-arm rather than meta-openembedded. Will explain more for Khem's question.
Quoted 2 lines
it also says
x86_64inCOMPATIBLE_HOST, while coresight seems to be arm specific is this not supposed to be so ?
OpenCSD lib is dedicated to be used for Arm CoreSight IP, but it can be built both for x86_64's and Arm64's distro.
The main usage case is to enable OpenCSD lib for Arm64 building, and the users can decode the trace data with Perf/OpenCSD in the same distro. Though I set COMPATIBLE_HOST for x86_64, it would be seldom to do cross analysis (e.g. capture trace data in OE/Arm64 and copy the perf data to OE/x86_64 for analysis).
For this reason, it's good to maintain this recipe in meta-arm. If no objection, I will prepare patch for meta-arm.
Thanks,
Leo
Quoted 27 lines · Leo Yan
Hi all,
Quoted 10 lines · Khem Raj
Quoted 7 lines · Scott Murray
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
Thanks for the suggestion, Scott.
To be honest, I didn't know meta-arm layer before; seems to me it makes sense to integrate this recipe into meta-arm rather than meta-openembedded. Will explain more for Khem's question.
Quoted 2 lines
it also says
x86_64inCOMPATIBLE_HOST, while coresight seems to be arm specific is this not supposed to be so ?OpenCSD lib is dedicated to be used for Arm CoreSight IP, but it can be built both for x86_64's and Arm64's distro.
Quoted 8 lines
The main usage case is to enable OpenCSD lib for Arm64 building, and the users can decode the trace data with Perf/OpenCSD in the same distro. Though I set
COMPATIBLE_HOSTforx86_64, it would be seldom to do cross analysis (e.g. capture trace data in OE/Arm64 and copy the perf data to OE/x86_64 for analysis).For this reason, it's good to maintain this recipe in meta-arm. If no objection, I will prepare patch for meta-arm.
Makes sense in meta-arm
Quoted 3 lines
Thanks,
Leo
Quoted 34 lines · Khem Raj
Quoted 33 lines · Leo Yan
Hi all,
Quoted 10 lines · Khem Raj
Quoted 7 lines · Scott Murray
Quoted 2 lines · Leo Yan
This recipe is to support OpenCSD, which is an open source CoreSight trace decode library and utility.
Just a thought, this seems like the kind of thing that might make sense for the new meta-arm layer that Jon has been working up?
Thanks for the suggestion, Scott.
To be honest, I didn't know meta-arm layer before; seems to me it makes sense to integrate this recipe into meta-arm rather than meta-openembedded. Will explain more for Khem's question.
Quoted 2 lines
it also says
x86_64inCOMPATIBLE_HOST, while coresight seems to be arm specific is this not supposed to be so ?OpenCSD lib is dedicated to be used for Arm CoreSight IP, but it can be built both for x86_64's and Arm64's distro.
The main usage case is to enable OpenCSD lib for Arm64 building, and the users can decode the trace data with Perf/OpenCSD in the same distro. Though I set
COMPATIBLE_HOSTforx86_64, it would be seldom to do cross analysis (e.g. capture trace data in OE/Arm64 and copy the perf data to OE/x86_64 for analysis).
Quoted 4 lines
Quoted 2 lines
For this reason, it's good to maintain this recipe in meta-arm. If no objection, I will prepare patch for meta-arm.
Makes sense in meta-arm
Thanks for confirmation, Khem. And thanks all :) Will do it.
Leo