blob: 7a53151d0ee20ae6e69f0da2a1d0ffec7d138645 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Set of i2c tools for linux"
2HOMEPAGE = "https://i2c.wiki.kernel.org/index.php/I2C_Tools"
3SECTION = "base"
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
6
7SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/${BP}.tar.gz \
Brad Bishop316dfdd2018-06-25 12:45:53 -04008"
9
Andrew Geissler6ce62a22020-11-30 19:58:47 -060010SRC_URI[sha256sum] = "7de18ed890e111fa54ab7ea896804d5faa4d1f0462a258aad9fbb7a8cc6b60cc"
Brad Bishop316dfdd2018-06-25 12:45:53 -040011
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012inherit update-alternatives
13
Brad Bishop316dfdd2018-06-25 12:45:53 -040014EXTRA_OEMAKE = "bindir=${bindir} sbindir=${sbindir} \
15 incdir=${includedir} libdir=${libdir} \
16 mandir=${mandir} \
17 EXTRA=eeprog"
18
19do_install() {
20 oe_runmake 'DESTDIR=${D}' install
21}
22
23PACKAGES =+ "${PN}-misc"
24FILES_${PN}-misc = "${sbindir}/i2c-stub-from-dump \
25 ${bindir}/ddcmon \
26 ${bindir}/decode-edid \
27 ${bindir}/decode-dimms \
28 ${bindir}/decode-vaio \
29 "
30RDEPENDS_${PN}-misc = "${PN} perl perl-module-posix \
31 perl-module-constant perl-module-file-basename \
32 perl-module-fcntl perl-module-strict perl-module-vars \
Brad Bishop64c979e2019-11-04 13:55:29 -050033 perl-module-carp \
Brad Bishop316dfdd2018-06-25 12:45:53 -040034 "
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080035
36ALTERNATIVE_PRIORITY = "100"
Brad Bishop96ff1982019-08-19 13:50:42 -040037ALTERNATIVE_${PN} = "i2cdetect i2cdump i2cget i2cset i2ctransfer"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038ALTERNATIVE_LINK_NAME[i2cdetect] = "${sbindir}/i2cdetect"
39ALTERNATIVE_LINK_NAME[i2cdump] = "${sbindir}/i2cdump"
40ALTERNATIVE_LINK_NAME[i2cget] = "${sbindir}/i2cget"
41ALTERNATIVE_LINK_NAME[i2cset] = "${sbindir}/i2cset"
Brad Bishop96ff1982019-08-19 13:50:42 -040042ALTERNATIVE_LINK_NAME[i2ctransfer] = "${sbindir}/i2ctransfer"