aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-kernel/gator/gator_git.bb
blob: edd4945e4ab4f2b10f968fe21fe3abcec82b25e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DESCRIPTION = "Target-side daemon gathering data for ARM Streamline Performance Analyzer."
SUMMARY  = "DS-5 Gator daemon"

LICENSE = "GPL-2"
LIC_FILES_CHKSUM = "file://driver/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"

inherit update-rc.d

SRC_URI = "git://git.linaro.org/arm/ds5/gator.git;protocol=http \
           file://gator.init "

SRCREV = "${AUTOREV}"

S = "${WORKDIR}/git"

PV = "5.15+git${SRCPV}"
PR = "r1"

do_compile() {
    cd daemon
    # aarch64 makefile will work just fine for any arch
    make -f Makefile_aarch64 CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}
}

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"