summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/digitemp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/digitemp')
-rw-r--r--meta-oe/recipes-support/digitemp/digitemp/0001-Fix-conflicting-prototype.patch32
-rw-r--r--meta-oe/recipes-support/digitemp/digitemp_3.7.2.bb6
2 files changed, 36 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/digitemp/digitemp/0001-Fix-conflicting-prototype.patch b/meta-oe/recipes-support/digitemp/digitemp/0001-Fix-conflicting-prototype.patch
new file mode 100644
index 0000000000..484fc1c3a2
--- /dev/null
+++ b/meta-oe/recipes-support/digitemp/digitemp/0001-Fix-conflicting-prototype.patch
@@ -0,0 +1,32 @@
1From fa56b0f78d12f97ac44e0a367d413a9e88611d1c Mon Sep 17 00:00:00 2001
2From: Robert Scheck <robert-scheck@users.noreply.github.com>
3Date: Thu, 16 Jan 2025 21:24:41 +0100
4Subject: [PATCH] Fix conflicting prototype
5
6src/digitemp.c:171:6: error: conflicting types for ‘free_coupler’; have ‘void(int)’
7 171 | void free_coupler( int free_only )
8 | ^~~~~~~~~~~~
9In file included from src/digitemp.c:78:
10src/digitemp.h:90:6: note: previous declaration of ‘free_coupler’ with type ‘void(void)’
11 90 | void free_coupler();
12 | ^~~~~~~~~~~~
13
14Upstream-Status: Backport [https://github.com/bcl/digitemp/commit/fa56b0f78d12f97ac44e0a367d413a9e88611d1c]
15Signed-off-by: mark.yang <mark.yang@lge.com>
16---
17 src/digitemp.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/src/digitemp.h b/src/digitemp.h
21index 06d50e9..e81a7be 100644
22--- a/src/digitemp.h
23+++ b/src/digitemp.h
24@@ -87,7 +87,7 @@ struct _coupler {
25
26 /* Prototypes */
27 void usage();
28-void free_coupler();
29+void free_coupler( int free_only );
30 float c2f( float temp );
31 int build_tf( char *time_format, char *format, int sensor,
32 float temp_c, int humidity, unsigned char *sn );
diff --git a/meta-oe/recipes-support/digitemp/digitemp_3.7.2.bb b/meta-oe/recipes-support/digitemp/digitemp_3.7.2.bb
index 6565097334..baddf42e6b 100644
--- a/meta-oe/recipes-support/digitemp/digitemp_3.7.2.bb
+++ b/meta-oe/recipes-support/digitemp/digitemp_3.7.2.bb
@@ -4,11 +4,13 @@ DEPENDS = "libusb1"
4LICENSE = "GPL-2.0-only" 4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=44fee82a1d2ed0676cf35478283e0aa0" 5LIC_FILES_CHKSUM = "file://COPYING;md5=44fee82a1d2ed0676cf35478283e0aa0"
6 6
7SRC_URI = "git://github.com/bcl/digitemp;branch=master;protocol=https" 7SRC_URI = " \
8 git://github.com/bcl/digitemp;branch=master;protocol=https \
9 file://0001-Fix-conflicting-prototype.patch \
10"
8 11
9SRCREV = "a162e63aad35358aab325388f3d5e88121606419" 12SRCREV = "a162e63aad35358aab325388f3d5e88121606419"
10 13
11S = "${WORKDIR}/git"
12 14
13EXTRA_OEMAKE = "ds9097 ds9097u \ 15EXTRA_OEMAKE = "ds9097 ds9097u \
14 SYSTYPE='Linux' \ 16 SYSTYPE='Linux' \