[oe] [PATCH v1] OpenCSD: Support for Arm CoreSight decode lib

Khem Raj raj.khem at gmail.com
Wed Mar 4 19:19:37 UTC 2020



On 3/4/20 8:05 AM, Scott Murray wrote:
> On Wed, 4 Mar 2020, Leo Yan wrote:
> 
>> 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 ?

>> Signed-off-by: Leo Yan <leo.yan at linaro.org>
>> ---
>>   .../recipes-devtools/opencsd/opencsd_git.bb   | 28 +++++++++++++++++++
>>   1 file changed, 28 insertions(+)
>>   create mode 100644 meta-oe/recipes-devtools/opencsd/opencsd_git.bb
>>
>> diff --git a/meta-oe/recipes-devtools/opencsd/opencsd_git.bb b/meta-oe/recipes-devtools/opencsd/opencsd_git.bb
>> new file mode 100644
>> index 000000000..0c3b4837d
>> --- /dev/null
>> +++ b/meta-oe/recipes-devtools/opencsd/opencsd_git.bb
>> @@ -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 - )
>> +}
>>


More information about the Openembedded-devel mailing list