diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-11-30 16:31:57 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-01-10 16:17:43 -0800 |
commit | 185995f619dd5d1dbcf35d2a92955a34bb6798a2 (patch) | |
tree | ea7d60f1f4a374747daec7f00e47e433cfe22d48 /recipes-support/gpio-tool/gpio-tool.bb | |
parent | 79b2a157c002e4c7fca0db0302a52058355f0fec (diff) |
gpio-tool: renamed the tool to gpio-tool
Follow the name change in the WinCE team.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'recipes-support/gpio-tool/gpio-tool.bb')
-rw-r--r-- | recipes-support/gpio-tool/gpio-tool.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-support/gpio-tool/gpio-tool.bb b/recipes-support/gpio-tool/gpio-tool.bb new file mode 100644 index 0000000..5d1079c --- /dev/null +++ b/recipes-support/gpio-tool/gpio-tool.bb @@ -0,0 +1,45 @@ +SUMMARY = "GPIOConfig tool for Toradex Modules" +SECTION = "base" +LICENSE = "CLOSED" +PR = "r3" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +DEPENDS = "gtk+" +RDEPENDS_{PN} = "gtk+" + +SRC_URI = "file://gpio-tool" +SRC_URI += "file://gpio-tool.desktop" +SRC_URI += "file://gpio-tool.png" + +PACKAGES = "${PN}" + +#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" + +# just don't do any configuring +do_configure() { +} + +do_install() { + install -d ${D}/${bindir} + install -d ${D}/${datadir}/applications + install -d ${D}/${datadir}/pixmaps + 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/ +} + +pkg_postinst_${PN}() { + mkdir -p ${base_prefix}/home/root/Desktop + cp ${datadir}/applications/gpio-tool.desktop ${base_prefix}/home/root/Desktop/ +} + +pkg_postrm_${PN}() { + rm -f ${base_prefix}/home/Desktop/gpio-tool.desktop +} + + + |