mirror of
https://git.yoctoproject.org/poky
synced 2026-02-24 10:29:40 +01:00
i2c-tools has been sitting outside of oe-core for long enough now. It is a required tool for board validation, and many people are pulling it into their builds and their own layers. Let's add it to the core. This patch includes the i2c-tools recipe from meta-oe as of: commit 9df13b4140e8c6bfa0e4fb89107a6146981d2cdc Author: Khem Raj <raj.khem@gmail.com> Date: 2014-04-26 i2c-tools: Fix build when S != B (From OE-Core rev: 32ac58819580d359e22161be1abf62215d202250) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Khem Raj <raj.khem@gmail.com> Cc: Martin Jansa <Martin.Jansa@gmail.com> Cc: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Cc: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
27 lines
881 B
BlitzBasic
27 lines
881 B
BlitzBasic
SUMMARY = "Set of i2c tools for linux"
|
|
SECTION = "base"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
|
|
RDEPENDS_${PN} += "perl"
|
|
|
|
SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/i2c-tools/i2c-tools-3.1.0.tar.bz2/f15019e559e378c6e9d5d6299a00df21/i2c-tools-${PV}.tar.bz2 \
|
|
file://Module.mk \
|
|
"
|
|
SRC_URI[md5sum] = "f15019e559e378c6e9d5d6299a00df21"
|
|
SRC_URI[sha256sum] = "960023f61de292c6dd757fcedec4bffa7dd036e8594e24b26a706094ca4c142a"
|
|
|
|
inherit autotools-brokensep
|
|
|
|
do_compile_prepend() {
|
|
cp ${WORKDIR}/Module.mk ${S}/eepromer/
|
|
sed -i 's#/usr/local#/usr#' ${S}/Makefile
|
|
echo "include eepromer/Module.mk" >> ${S}/Makefile
|
|
}
|
|
|
|
do_install_append() {
|
|
install -d ${D}${includedir}/linux
|
|
install -m 0644 include/linux/i2c-dev.h ${D}${includedir}/linux/i2c-dev-user.h
|
|
rm -f ${D}${includedir}/linux/i2c-dev.h
|
|
}
|