battery-test_git.bb: Add new battery test recipe

Get battery values from cli e.g. voltage, current and remaining
capacity. Depends on python3-smbus.

BugzID: 54085


Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
Ramon Moesching 2018-11-09 09:15:34 +01:00
parent 326b2247fb
commit f46a07a047
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
SUMMARY = "Battery Test tool"
DESCRIPTION = "Read battery state, remaining time and other informations from battery"
AUTHOR = "Ramon Mösching (ramon.moesching@netmodule.com)"
SECTION = "core"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PR = "r0"
RDEPENDS_${PN} = "python3-smbus"
SRC_URI = "git://git.netmodule.intranet/nm-tools/smart-battery.git;protocol=ssh;user=gitea;branch=${MACHINE} "
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
FILES_${PN} = "${bindir}/* batterytest.py "
do_install () {
install -d ${D}${bindir}
install -m 0755 batterytest.py ${D}${bindir}/batterytest
}