aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-devtools/rgp/rgp.inc
blob: f10a36e904d8d99d6d07ff38e108cc020a3adfe4 (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
34
35
36
37
38
39
40
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"

SUMMARY = "Radeon-GPUProfiler"
DESCRIPTION = "The Radeon GPU Profiler (RGP) is a ground-breaking \
              low-level optimization tool from AMD.  It provides \
              detailed timing information on Radeon Graphics \
              using custom, built-in, hardware thread-tracing, \
              allowing the developer deep inspection of GPU workloads. \
              This package merely deploys the remote profiling service \
              on the target so a host can collect and display profiling \
              data."

LICENSE = "Proprietary"

inherit systemd

RDEPENDS_${PN} += "connman-wait-online"

SRC_URI = "file://License.rtf \
           file://RadeonDeveloperServiceCLI \
           file://${BOOT_SERVICE}"

S = "${WORKDIR}"
BOOT_SERVICE = "rds-cli.service"
SYSTEMD_SERVICE_${PN} = "${BOOT_SERVICE}"
SYSTEMD_AUTO_ENABLE = "enable"

# Skip configure and compile
do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install () {
    # Install the binary for RDS CLI
    install -d ${D}${bindir}
    install -m 0755 ${S}/RadeonDeveloperServiceCLI ${D}${bindir}/

    # Install the systemd service so we can kick start on boot
    install -d ${D}${systemd_unitdir}/system
    install -m 644 ${WORKDIR}/${BOOT_SERVICE} ${D}${systemd_unitdir}/system/
}