mirror of
https://git.yoctoproject.org/poky
synced 2026-03-29 14:02:22 +02:00
For unknowable reasons this recipe inherits autotools-brokensep despite not in fact using autotools. Remove the inherit, add a do_install() that calls the makefile directly. Extend EXTRA_OEMAKE to pass bindir/sbindir/incdir/libdir/mandir so the files are all packaged in the correct location (and remove the now redundant sed of Makefile). Pass EXTRA=eeprog to EXTRA_OEMAKE to build eeprog, and remove the now redundant edit of Makefile. Backport a patch from upstream to remove linux/i2c-dev.h instead of installing it with a different name (which nobody will be using). (From OE-Core rev: a5d5d66c30378c35900c46dac4e4824a10521477) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
37 lines
1.4 KiB
BlitzBasic
37 lines
1.4 KiB
BlitzBasic
SUMMARY = "Set of i2c tools for linux"
|
|
HOMEPAGE = "https://i2c.wiki.kernel.org/index.php/I2C_Tools"
|
|
SECTION = "base"
|
|
LICENSE = "GPLv2+"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/${BP}.tar.gz \
|
|
file://0001-lib-Module.mk-Add-missing-dependencies.patch \
|
|
file://0001-tools-Module.mk-Add-missing-dependencies.patch \
|
|
file://0001-i2c-tools-eeprog-Module.mk-Add-missing-dependency.patch \
|
|
file://remove-i2c-dev.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "d92a288d70f306d3895e3a7e9c14c9aa"
|
|
SRC_URI[sha256sum] = "5b60daf6f011de0acb61de57dba62f2054bb39f19961d67e0c91610f071ca403"
|
|
|
|
EXTRA_OEMAKE = "bindir=${bindir} sbindir=${sbindir} \
|
|
incdir=${includedir} libdir=${libdir} \
|
|
mandir=${mandir} \
|
|
EXTRA=eeprog"
|
|
|
|
do_install() {
|
|
oe_runmake 'DESTDIR=${D}' install
|
|
}
|
|
|
|
PACKAGES =+ "${PN}-misc"
|
|
FILES_${PN}-misc = "${sbindir}/i2c-stub-from-dump \
|
|
${bindir}/ddcmon \
|
|
${bindir}/decode-edid \
|
|
${bindir}/decode-dimms \
|
|
${bindir}/decode-vaio \
|
|
"
|
|
RDEPENDS_${PN}-misc = "${PN} perl perl-module-posix \
|
|
perl-module-constant perl-module-file-basename \
|
|
perl-module-fcntl perl-module-strict perl-module-vars \
|
|
"
|