Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Set of i2c tools for linux" |
| 2 | SECTION = "base" |
| 3 | LICENSE = "GPLv2+" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | |
| 6 | SRC_URI = "http://dl.lm-sensors.org/i2c-tools/releases/${BP}.tar.bz2 \ |
| 7 | file://Module.mk \ |
| 8 | " |
| 9 | SRC_URI[md5sum] = "7104a1043d11a5e2c7b131614eb1b962" |
| 10 | SRC_URI[sha256sum] = "db5e69f2e2a6e3aa2ecdfe6a5f490b149c504468770f58921c8c5b8a7860a441" |
| 11 | |
| 12 | inherit autotools-brokensep |
| 13 | |
| 14 | do_compile_prepend() { |
| 15 | cp ${WORKDIR}/Module.mk ${S}/eepromer/ |
| 16 | sed -i 's#/usr/local#/usr#' ${S}/Makefile |
| 17 | echo "include eepromer/Module.mk" >> ${S}/Makefile |
| 18 | } |
| 19 | |
| 20 | do_install_append() { |
| 21 | install -d ${D}${includedir}/linux |
| 22 | install -m 0644 include/linux/i2c-dev.h ${D}${includedir}/linux/i2c-dev-user.h |
| 23 | rm -f ${D}${includedir}/linux/i2c-dev.h |
| 24 | } |
| 25 | |
| 26 | PACKAGES =+ "${PN}-misc" |
| 27 | FILES_${PN}-misc = "${sbindir}/i2c-stub-from-dump \ |
| 28 | ${bindir}/ddcmon \ |
| 29 | ${bindir}/decode-edid \ |
| 30 | ${bindir}/decode-dimms \ |
| 31 | ${bindir}/decode-vaio \ |
| 32 | " |
| 33 | RDEPENDS_${PN} += "${PN}-misc" |
| 34 | RDEPENDS_${PN}-misc += "perl" |