summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb')
-rw-r--r--meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb b/meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb
new file mode 100644
index 0000000000..2b4563d4f0
--- /dev/null
+++ b/meta/recipes-devtools/i2c-tools/i2c-tools_4.1.bb
@@ -0,0 +1,41 @@
1SUMMARY = "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 \
8"
9
10SRC_URI[md5sum] = "3536237a6b51fb10caacdc3b8a496237"
11SRC_URI[sha256sum] = "ef8f77afc70e7dbfd1171bfeae87a8a7f10074829370ce8d9ccd585a014e0073"
12
13inherit update-alternatives
14
15EXTRA_OEMAKE = "bindir=${bindir} sbindir=${sbindir} \
16 incdir=${includedir} libdir=${libdir} \
17 mandir=${mandir} \
18 EXTRA=eeprog"
19
20do_install() {
21 oe_runmake 'DESTDIR=${D}' install
22}
23
24PACKAGES =+ "${PN}-misc"
25FILES_${PN}-misc = "${sbindir}/i2c-stub-from-dump \
26 ${bindir}/ddcmon \
27 ${bindir}/decode-edid \
28 ${bindir}/decode-dimms \
29 ${bindir}/decode-vaio \
30 "
31RDEPENDS_${PN}-misc = "${PN} perl perl-module-posix \
32 perl-module-constant perl-module-file-basename \
33 perl-module-fcntl perl-module-strict perl-module-vars \
34 "
35
36ALTERNATIVE_PRIORITY = "100"
37ALTERNATIVE_${PN} = "i2cdetect i2cdump i2cget i2cset"
38ALTERNATIVE_LINK_NAME[i2cdetect] = "${sbindir}/i2cdetect"
39ALTERNATIVE_LINK_NAME[i2cdump] = "${sbindir}/i2cdump"
40ALTERNATIVE_LINK_NAME[i2cget] = "${sbindir}/i2cget"
41ALTERNATIVE_LINK_NAME[i2cset] = "${sbindir}/i2cset"