summaryrefslogtreecommitdiff
path: root/recipes-support/gpio-tool/gpio-tool.bb
blob: 45181a8922d21536444d4dbba7d6d39b6078f1bb (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
SUMMARY = "GPIOConfig tool for Toradex Modules"
SECTION = "base"
LICENSE = "CLOSED"
PR = "r3"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEPENDS = "glib-2.0 gtk+"

SRC_URI = " \
    file://gpio-tool \
    file://gpio-tool.desktop \
    file://gpio-tool.png \
"

inherit bin_package

#no gnu_hash in binaries, skip QA dev-so for this package
#we have symlinks ending in .so, skip QA ldflags for this package
#inhibit warnings about files being stripped
INSANE_SKIP:${PN} = "ldflags already-stripped"

do_install() {
    install -d ${D}/${bindir}
    install -d ${D}/${datadir}/applications
    install -d ${D}/${datadir}/pixmaps
    install -d ${D}/home/root/Desktop
    install -m 755 ${WORKDIR}/gpio-tool ${D}/${bindir}/
    install -m 644 ${WORKDIR}/gpio-tool.desktop ${D}/${datadir}/applications/
    install -m 644 ${WORKDIR}/gpio-tool.png ${D}/${datadir}/pixmaps/
    ln -s ${datadir}/applications/gpio-tool.desktop ${D}/home/root/Desktop/
}