diff options
author | Maxin John <maxin.john@intel.com> | 2018-01-12 14:26:37 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-19 12:37:13 +0000 |
commit | 0797aab859f89b810365278e3b865fe4d79aeab1 (patch) | |
tree | 4358307e3a3a3b824baaebbc7d850b28cff94231 /meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb | |
parent | 9b7a842855a0d0ae4b5ca6daecd963e7ff85dc10 (diff) | |
download | poky-0797aab859f89b810365278e3b865fe4d79aeab1.tar.gz |
i2c-tools: upgrade to 4.0
Update the SRC_URI to point to kernel.org location where
i2c-tools is hosted these days.
Remove Modules.mk since it was used for deprecated binaries
(eepromer, eeprom)
Backported the following patches to fix races during build:
a) 0001-tools-Module.mk-Add-missing-dependencies.patch
b) 0001-i2c-tools-eeprog-Module.mk-Add-missing-dependency.patch
c) 0001-lib-Module.mk-Add-missing-dependencies.patch
(From OE-Core rev: f330e9f64b69de09284da765ca1e869099ec49ae)
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb')
-rw-r--r-- | meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb b/meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb new file mode 100644 index 0000000000..e936fd759b --- /dev/null +++ b/meta/recipes-devtools/i2c-tools/i2c-tools_4.0.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Set of i2c tools for linux" | ||
2 | HOMEPAGE = "https://i2c.wiki.kernel.org/index.php/I2C_Tools" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
6 | |||
7 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/${BP}.tar.gz \ | ||
8 | file://0001-lib-Module.mk-Add-missing-dependencies.patch \ | ||
9 | file://0001-tools-Module.mk-Add-missing-dependencies.patch \ | ||
10 | file://0001-i2c-tools-eeprog-Module.mk-Add-missing-dependency.patch \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "d92a288d70f306d3895e3a7e9c14c9aa" | ||
14 | SRC_URI[sha256sum] = "5b60daf6f011de0acb61de57dba62f2054bb39f19961d67e0c91610f071ca403" | ||
15 | |||
16 | inherit autotools-brokensep | ||
17 | |||
18 | do_compile_prepend() { | ||
19 | sed -i 's#/usr/local#/usr#' ${S}/Makefile | ||
20 | echo "include eeprog/Module.mk" >> ${S}/Makefile | ||
21 | } | ||
22 | |||
23 | do_install_append() { | ||
24 | install -d ${D}${includedir}/linux | ||
25 | install -m 0644 include/linux/i2c-dev.h ${D}${includedir}/linux/i2c-dev-user.h | ||
26 | rm -f ${D}${includedir}/linux/i2c-dev.h | ||
27 | } | ||
28 | |||
29 | PACKAGES =+ "${PN}-misc" | ||
30 | FILES_${PN}-misc = "${sbindir}/i2c-stub-from-dump \ | ||
31 | ${bindir}/ddcmon \ | ||
32 | ${bindir}/decode-edid \ | ||
33 | ${bindir}/decode-dimms \ | ||
34 | ${bindir}/decode-vaio \ | ||
35 | " | ||
36 | RDEPENDS_${PN}-misc = "${PN} perl perl-module-posix \ | ||
37 | perl-module-constant perl-module-file-basename \ | ||
38 | perl-module-fcntl perl-module-strict perl-module-vars \ | ||
39 | " | ||