From 8d89651ef729e560ad96dcfc002fcde6ff7f923b Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 8 Oct 2015 22:46:13 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- meta-linaro/recipes-kernel/gator/gator/gator.init | 48 +++++++++++++++++++++++ meta-linaro/recipes-kernel/gator/gator_git.bb | 33 ++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100755 meta-linaro/recipes-kernel/gator/gator/gator.init create mode 100644 meta-linaro/recipes-kernel/gator/gator_git.bb (limited to 'meta-linaro/recipes-kernel/gator') diff --git a/meta-linaro/recipes-kernel/gator/gator/gator.init b/meta-linaro/recipes-kernel/gator/gator/gator.init new file mode 100755 index 0000000..11ac345 --- /dev/null +++ b/meta-linaro/recipes-kernel/gator/gator/gator.init @@ -0,0 +1,48 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: gatord +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts gatord +# Description: Starts the Gator Daemon for ARM DS5 +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +DESC="Gator" +NAME="gatord" +GATOR=`which $NAME` + +. /etc/init.d/functions || exit 1 + +# Exit if the package is not installed +[ -x "$GATOR" ] || exit 0 + +case "$1" in + start) + echo -n "Starting $DESC: $NAME... " + depmod -a||true + modprobe gator + start-stop-daemon -S -b -x $GATOR -- $GATOR_ARGS + echo "done." + ;; + stop) + echo -n "Stopping $DESC: $NAME... " + start-stop-daemon -K -x $GATOR + echo "done." + ;; + restart) + echo "Restarting $DESC: $NAME... " + $0 stop + $0 start + echo "done." + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/meta-linaro/recipes-kernel/gator/gator_git.bb b/meta-linaro/recipes-kernel/gator/gator_git.bb new file mode 100644 index 0000000..1c8431b --- /dev/null +++ b/meta-linaro/recipes-kernel/gator/gator_git.bb @@ -0,0 +1,33 @@ +SUMMARY = "DS-5 Gator daemon" +DESCRIPTION = "Target-side daemon gathering data for ARM Streamline Performance Analyzer." + +LICENSE = "GPL-2" +LIC_FILES_CHKSUM = "file://driver/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRCREV = "bc8a84cf0b138a2951679581453da7bd93003db6" +PV = "5.19+git${SRCPV}" + +SRC_URI = "git://git.linaro.org/arm/ds5/gator.git;protocol=http;branch=linaro \ + file://gator.init" + +S = "${WORKDIR}/git" + +inherit update-rc.d + +EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} ${TARGET_CC_ARCH} -DETCDIR=\"${sysconfdir}\"' \ + 'LDFLAGS=${LDFLAGS} ${TARGET_CC_ARCH}' 'CROSS_COMPILE=${TARGET_PREFIX}' \ + 'CXXFLAGS=${CXXFLAGS} ${TARGET_CC_ARCH} -fno-rtti'" + +do_compile() { + # The regular makefile tries to be 'smart' by hardcoding ABI assumptions, let's use the clean makefile for everything. + cp ${S}/daemon/Makefile_aarch64 ${S}/daemon/Makefile + oe_runmake -C daemon CC='${CC}' CXX='${CXX}' +} + +do_install() { + install -D -p -m0755 daemon/gatord ${D}/${sbindir}/gatord + install -D -p -m0755 ${WORKDIR}/gator.init ${D}/${sysconfdir}/init.d/gator +} + +INITSCRIPT_NAME = "gator" +INITSCRIPT_PARAMS = "defaults 66" -- cgit v1.2.3-54-g00ecf