From f46a07a047ced986e496252cccd67fbdd5933a56 Mon Sep 17 00:00:00 2001 From: Ramon Moesching Date: Fri, 9 Nov 2018 09:15:34 +0100 Subject: [PATCH] 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 --- recipes-core/battery-test/battery-test_git.bb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 recipes-core/battery-test/battery-test_git.bb diff --git a/recipes-core/battery-test/battery-test_git.bb b/recipes-core/battery-test/battery-test_git.bb new file mode 100644 index 0000000..498d428 --- /dev/null +++ b/recipes-core/battery-test/battery-test_git.bb @@ -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 + +} +