diff options
| -rw-r--r-- | meta-oe/recipes-bsp/i2cdev/i2cdev/fix-lsi2c-makefile.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-bsp/i2cdev/i2cdev_git.bb | 26 |
2 files changed, 54 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-lsi2c-makefile.patch b/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-lsi2c-makefile.patch new file mode 100644 index 0000000000..820d4bb447 --- /dev/null +++ b/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-lsi2c-makefile.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 57c09727220e00ab961325a2c85f5611bd1770d6 Mon Sep 17 00:00:00 2001 | ||
| 2 | Message-Id: <57c09727220e00ab961325a2c85f5611bd1770d6.1701984646.git.joerg.sommer@navimatix.de> | ||
| 3 | From: =?UTF-8?q?J=C3=B6rg=20Sommer?= <joerg.sommer@navimatix.de> | ||
| 4 | Date: Thu, 7 Dec 2023 22:29:40 +0100 | ||
| 5 | Subject: [PATCH] lsi2c/Makefile: Use builddir to refer to libi2cdev.a | ||
| 6 | |||
| 7 | Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de> | ||
| 8 | Upstream-Status: Submitted [https://github.com/costad2/i2cdev/pull/2/commits/43f15e97d869797dbfeaacafa13216aaaf353426] | ||
| 9 | --- | ||
| 10 | lsi2c/Makefile.am | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/lsi2c/Makefile.am b/lsi2c/Makefile.am | ||
| 14 | index 6defc1f..0d81d01 100644 | ||
| 15 | --- a/lsi2c/Makefile.am | ||
| 16 | +++ b/lsi2c/Makefile.am | ||
| 17 | @@ -14,7 +14,7 @@ bin_PROGRAMS=lsi2c | ||
| 18 | lsi2c_SOURCES = lsi2c.c | ||
| 19 | |||
| 20 | # Linker options for lsi2c | ||
| 21 | -lsi2c_LDADD = $(top_srcdir)/libi2cdev/libi2cdev.a | ||
| 22 | +lsi2c_LDADD = $(top_builddir)/libi2cdev/libi2cdev.a | ||
| 23 | |||
| 24 | # Compiler options for lsi2c | ||
| 25 | lsi2c_CFLAGS = -I$(top_srcdir)/include -std=c99 -fPIC | ||
| 26 | -- | ||
| 27 | 2.34.1 | ||
| 28 | |||
diff --git a/meta-oe/recipes-bsp/i2cdev/i2cdev_git.bb b/meta-oe/recipes-bsp/i2cdev/i2cdev_git.bb new file mode 100644 index 0000000000..b1f8a7f805 --- /dev/null +++ b/meta-oe/recipes-bsp/i2cdev/i2cdev_git.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | SUMMARY = "i2c dev tools for Linux" | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | This package contains an I2C dev library and the i2c bus scanning \ | ||
| 4 | utility lsi2c. \ | ||
| 5 | " | ||
| 6 | AUTHOR = "Danielle Costantino" | ||
| 7 | HOMEPAGE = "https://github.com/costad2/i2cdev" | ||
| 8 | LICENSE = "GPL-2.0-or-later" | ||
| 9 | LIC_FILES_CHKSUM = "\ | ||
| 10 | file://COPYING;md5=768997ba510a952bef1775c50bc22b00 \ | ||
| 11 | file://include/libi2cdev.h;beginline=12;endline=25;md5=72486a5e192d6ac5c7e55a4a95e380a6 \ | ||
| 12 | file://libi2cdev/smbus.c;beginline=9;endline=22;md5=d9a0de5a611b960fa75912ded6c60096 \ | ||
| 13 | file://lsi2c/lsi2c.c;beginline=11;endline=24;md5=72486a5e192d6ac5c7e55a4a95e380a6 \ | ||
| 14 | " | ||
| 15 | |||
| 16 | PR = "git${SRCPV}" | ||
| 17 | |||
| 18 | SRC_URI = "\ | ||
| 19 | git://github.com/costad2/i2cdev.git;protocol=https;branch=master \ | ||
| 20 | file://fix-lsi2c-makefile.patch \ | ||
| 21 | " | ||
| 22 | SRCREV = "ed9ad777d842880e7ac6ca5e0de4bd2d3b4d02dc" | ||
| 23 | |||
| 24 | S = "${WORKDIR}/git" | ||
| 25 | |||
| 26 | inherit autotools | ||
