blob: ded30ced992b5121a375ed7231d504af917fd431 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Set of i2c tools for linux - Python module"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://smbusmodule.c;startline=1;endline=17;md5=fa24df321a520ff8e10f203425ab9fa8"
4
5SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/i2c-tools-${PV}.tar.bz2 \
6"
7SRC_URI[md5sum] = "7104a1043d11a5e2c7b131614eb1b962"
8SRC_URI[sha256sum] = "db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441"
9
10DEPENDS += "i2c-tools"
11
12S = "${WORKDIR}/i2c-tools-${PV}/py-smbus/"
13
14do_configure_prepend() {
15 # Adjust for OE header rename
16 sed -i s:linux/i2c-dev.h:linux/i2c-dev-user.h: Module.mk
17 sed -i s:linux/i2c-dev.h:linux/i2c-dev-user.h: smbusmodule.c
18}