OpenCSD: Support for Arm CoreSight decode lib
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
@@ -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
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
@@ -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
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
Signed-off-by Leo Yan <[email protected]<mailto:[email protected]>>---
.../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@@ -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
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