Skip to contentSkip to conversation

OpenCSD: Support for Arm CoreSight decode lib

PATCH In review Leo Yan 3 participants 4 messages Mar 18, 2020 – Mar 20, 2020

lore
Share & tools
lore

Leo Yan

author
#0 lore raw

PATCH v3 1/1 OpenCSD: Support for Arm CoreSight decode lib

This patch is to add recipe for OpenCSD, which is an open source CoreSight trace decode library and utility.

Also create a new folder recipes-devtools under meta-arm to place this recipe.

v3: Added support native building (Bertrand Marquis).

v2: Refined recipe to use '-C' make option so can catch make error
(Bertrand Marquis).

---
 .../recipes-devtools/opencsd/opencsd_git.bb   | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 meta-arm/recipes-devtools/opencsd/opencsd_git.bb
meta-arm/recipes-devtools/opencsd/opencsd_git.bb new file +31 -0
new file mode 100644
index 0000000..f1d4cac
@@ -0,0 +1,31 @@
+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}' \
+                LIB='${AR}' \
+                LINKER='${CXX}' \
+                LINUX64=1 \
+                DEBUG=1 \
+                "
+
+do_compile() {
+    oe_runmake -C ${S}/decoder/build/linux ${EXTRA_OEMAKE}
+}
+
+do_install() {
+    oe_runmake -C ${S}/decoder/build/linux PREFIX=${D}/usr install
+}
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.17.1
Reviewed-by on v3 1/1
#1 lore raw

On 18 Mar 2020, at 07:19, Leo Yan <[email protected]<mailto:[email protected]>> wrote:

This patch is to add recipe for OpenCSD, which is an open source CoreSight trace decode library and utility.

Also create a new folder recipes-devtools under meta-arm to place this recipe.

v3: Added support native building (Bertrand Marquis).

v2: Refined recipe to use '-C' make option so can catch make error
(Bertrand Marquis).

---
.../recipes-devtools/opencsd/opencsd_git.bb | 31 +++++++++++++++++++

1 file changed, 31 insertions(+)

create mode 100644 meta-arm/recipes-devtools/opencsd/opencsd_git.bb

meta-arm/recipes-devtools/opencsd/opencsd_git.bb new file +31 -0
new file mode 100644
index 0000000..f1d4cac
@@ -0,0 +1,31 @@
+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}' \
+                LIB='${AR}' \
+                LINKER='${CXX}' \
+                LINUX64=1 \
+                DEBUG=1 \
+                "
+
+do_compile() {
+    oe_runmake -C ${S}/decoder/build/linux ${EXTRA_OEMAKE}
+}
+
+do_install() {
+    oe_runmake -C ${S}/decoder/build/linux PREFIX=${D}/usr install
+}
+
+BBCLASSEXTEND = "native"

—
2.17.1

#2 lore raw
Quoted 7 lines · Bertrand Marquis

On 18 Mar 2020, at 07:19, Leo Yan <[email protected]<mailto:[email protected]>> wrote:

This patch is to add recipe for OpenCSD, which is an open source CoreSight trace decode library and utility.

Quoted 7 lines

Also create a new folder recipes-devtools under meta-arm to place this recipe.

v3: Added support native building (Bertrand Marquis).

v2: Refined recipe to use '-C' make option so can catch make error
(Bertrand Marquis).

Applied to the master branch of meta-arm. Nit, in thw future, if you can add comments like v2 and v3 under a '---', it would save me from having to edit the commit message to remove them. Git will automatically remove everything between the first --- and the start of the patch (and this is how the do comments like this in emails on LKML).

Thanks,
Jon

Quoted 54 lines

---
.../recipes-devtools/opencsd/opencsd_git.bb | 31 +++++++++++++++++++

1 file changed, 31 insertions(+)

create mode 100644 meta-arm/recipes-devtools/opencsd/opencsd_git.bb

meta-arm/recipes-devtools/opencsd/opencsd_git.bb new file +31 -0
new file mode 100644
index 0000000..f1d4cac
@@ -0,0 +1,31 @@
+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}' \
+                LIB='${AR}' \
+                LINKER='${CXX}' \
+                LINUX64=1 \
+                DEBUG=1 \
+                "
+
+do_compile() {
+    oe_runmake -C ${S}/decoder/build/linux ${EXTRA_OEMAKE}
+}
+
+do_install() {
+    oe_runmake -C ${S}/decoder/build/linux PREFIX=${D}/usr install
+}
+
+BBCLASSEXTEND = "native"

—
2.17.1

author
#3 lore raw
Quoted 16 lines · Jon Mason
Quoted 7 lines · Bertrand Marquis

On 18 Mar 2020, at 07:19, Leo Yan <[email protected]<mailto:[email protected]>> wrote:

This patch is to add recipe for OpenCSD, which is an open source CoreSight trace decode library and utility.

Quoted 7 lines

Also create a new folder recipes-devtools under meta-arm to place this recipe.

v3: Added support native building (Bertrand Marquis).

v2: Refined recipe to use '-C' make option so can catch make error
(Bertrand Marquis).

Quoted 6 lines

Applied to the master branch of meta-arm. Nit, in thw future, if you can add comments like v2 and v3 under a '---', it would save me from having to edit the commit message to remove them. Git will automatically remove everything between the first --- and the start of the patch (and this is how the do comments like this in emails on LKML).

Thank you, Jon. I am aware this with your reminding and read a good practice [1] and later will follow.

Thanks,
Leo

[1] https://lkml.org/lkml/2020/3/10/1403