gator: Add new package
RFC PATCH 1/1 gator: Add new package
To communicate with the target device, Streamline requires the gator daemon, gatord, to be running on the device.
Signed-off-by Clément Péron <[email protected]>
--- .../gator/0001-gator-don-t-strip-debug.patch | 24 +++++++++++++++++++ .../recipes-devtools/gator/gator_7.5.0.bb | 22 +++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 meta-arm/recipes-devtools/gator/gator/0001-gator-don-t-strip-debug.patch create mode 100644 meta-arm/recipes-devtools/gator/gator_7.5.0.bb
meta-arm/recipes-devtools/gator/gator/0001-gator-don-t-strip-debug.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 370e9c97f1bc07a63aa87e954823c0063058aad7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= <[email protected]> +Date: Fri, 16 Apr 2021 15:27:16 +0200 +Subject: [PATCH] gator: don't strip debug + +--- + daemon/Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/daemon/Makefile b/daemon/Makefile +index ba5f29cfeb10..6807948310f9 100644 +--- a/daemon/Makefile ++++ b/daemon/Makefile +@@ -26,8 +26,6 @@ ifeq ($(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 5),1) + CXXFLAGS += -fno-sized-deallocation + endif + +-# -s strips the binary of debug info +-LDFLAGS += -s + LDLIBS += -lrt -lm -pthread + TARGET := $(OBJ_DIR)gatord + ESCAPE_EXE := $(OBJ_DIR)escape/escape +-- +2.25.1
meta-arm/recipes-devtools/gator/gator_7.5.0.bb new file +22 -0
@@ -0,0 +1,22 @@ +SUMMARY = "DS-5 Streamine Gator daemon" +DESCRIPTION = "Target-side daemon gathering data for ARM Streamline Performance Analyzer." + +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +LICENSE_libsensors = "LGPL-2.1-or-later" + +SRCREV = "6088d3533146d7b7c9700b8e396292053240b25f" +SRC_URI = "git://github.com/ARM-software/gator.git;protocol=http;branch=master \ + file://0001-gator-don-t-strip-debug.patch;patchdir=.. \ + " + +S = "${WORKDIR}/git/daemon" + +EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} ${TARGET_CC_ARCH} -D_DEFAULT_SOURCE -DETCDIR=\"${sysconfdir}\"' \ + 'LDFLAGS=${LDFLAGS} ${TARGET_CC_ARCH}' 'CROSS_COMPILE=${TARGET_PREFIX}' \ + 'CXXFLAGS=${CXXFLAGS} ${TARGET_CC_ARCH} -fno-rtti' CC='${CC}' CXX='${CXX}'" + +do_install() { + install -d ${D}${sbindir} + install -m 0755 ${S}/gatord ${D}${sbindir}/gatord +}
Signature · 1 line
2.25.1