summaryrefslogtreecommitdiff
path: root/recipes-bsp/tegrastats/tegrastats.bb
blob: e49ec7290ad49970ee3ea9597a2770612385cace (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
SUMMARY = "NVIDIAS tegrastats"
DESCRIPTION = "NVIDIAS tegrastats in a commandline version and one with output to a gtk title bar, gives information about cpu use"
LICENSE = "CLOSED"
PR = "r3"

RDEPENDS_{PN}-gtk = "pango libatk-1.0-0"

SRC_URI =  "file://tegrastats \
            file://tegrastats-gtk \
	    file://Tegrastats-gtk.desktop "

S = "${WORKDIR}"

PACKAGES_prepend = "${PN}-gtk "

# Inhibit warnings about files being stripped.
# Inhibit warnings about missing DEPENDS, Files are provided in binary form"
WARN_QA_remove = "already-stripped build-deps"
WARN_QA_remove_tegra124 = "already-stripped build-deps ldflags"
WARN_QA-gtk_remove = "already-stripped build-deps"

do_install() {
    install -d ${D}${bindir}/ ${D}/home/root/Desktop/
    install -m 0755 ${S}/tegrastats* ${D}${bindir}/
    install -m 0755 ${S}/Tegrastats-gtk.desktop ${D}/home/root/Desktop/
}

FILES_${PN}-gtk = " \
	${bindir}/tegrastats-gtk \
	/home/root/Desktop/Tegra* "

FILES_${PN} = "${bindir}/tegrastats"

PACKAGE_ARCH_tegra124 = "${MACHINE_ARCH}"