summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-25 18:13:59 -0700
committerKhem Raj <raj.khem@gmail.com>2024-03-25 18:52:52 -0700
commit2de9cb6ec793f91659f6f9dd0276fe6754ac2296 (patch)
treef0452429a0017e62018434d92746840e5227008a /meta-oe/recipes-bsp
parent10fb90ef3c89cab95c135475e9258834e08082bf (diff)
downloadmeta-openembedded-2de9cb6ec793f91659f6f9dd0276fe6754ac2296.tar.gz
i2cdev: Include libgen.h on musl
This helps in getting prototype for basename() and fix build errors on clang-18+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-bsp')
-rw-r--r--meta-oe/recipes-bsp/i2cdev/i2cdev/fix-musl.patch28
1 files changed, 8 insertions, 20 deletions
diff --git a/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-musl.patch b/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-musl.patch
index 59fd379de..a15514baf 100644
--- a/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-musl.patch
+++ b/meta-oe/recipes-bsp/i2cdev/i2cdev/fix-musl.patch
@@ -20,8 +20,6 @@ Upstream-Status: Submitted [https://github.com/costad2/i2cdev/pull/5]
20 lsi2c/lsi2c.c | 4 ++-- 20 lsi2c/lsi2c.c | 4 ++--
21 7 files changed, 2 insertions(+), 9 deletions(-) 21 7 files changed, 2 insertions(+), 9 deletions(-)
22 22
23diff --git a/libi2cdev/access.c b/libi2cdev/access.c
24index 62a3f59..2e77659 100644
25--- a/libi2cdev/access.c 23--- a/libi2cdev/access.c
26+++ b/libi2cdev/access.c 24+++ b/libi2cdev/access.c
27@@ -16,7 +16,6 @@ 25@@ -16,7 +16,6 @@
@@ -32,20 +30,19 @@ index 62a3f59..2e77659 100644
32 #include "sysfs.h" 30 #include "sysfs.h"
33 31
34 #include "i2cdiscov.h" 32 #include "i2cdiscov.h"
35diff --git a/libi2cdev/i2c-bus-parser.c b/libi2cdev/i2c-bus-parser.c
36index c4b8688..8c760e0 100644
37--- a/libi2cdev/i2c-bus-parser.c 33--- a/libi2cdev/i2c-bus-parser.c
38+++ b/libi2cdev/i2c-bus-parser.c 34+++ b/libi2cdev/i2c-bus-parser.c
39@@ -27,7 +27,6 @@ 35@@ -27,9 +27,9 @@
40 #include <dirent.h> 36 #include <dirent.h>
41 #include <fcntl.h> 37 #include <fcntl.h>
42 #include <errno.h> 38 #include <errno.h>
43-#include <error.h> 39-#include <error.h>
44 #include <alloca.h> 40 #include <alloca.h>
45 #include <search.h> 41 #include <search.h>
42+#include <libgen.h>
46 43
47diff --git a/libi2cdev/i2c-dev-path.c b/libi2cdev/i2c-dev-path.c 44 #include "common.h"
48index b156db7..361761c 100644 45 #include "sysfs.h"
49--- a/libi2cdev/i2c-dev-path.c 46--- a/libi2cdev/i2c-dev-path.c
50+++ b/libi2cdev/i2c-dev-path.c 47+++ b/libi2cdev/i2c-dev-path.c
51@@ -11,7 +11,6 @@ 48@@ -11,7 +11,6 @@
@@ -56,8 +53,6 @@ index b156db7..361761c 100644
56 53
57 #include <linux/limits.h> 54 #include <linux/limits.h>
58 55
59diff --git a/libi2cdev/i2c-error.c b/libi2cdev/i2c-error.c
60index f92fb6b..540c112 100644
61--- a/libi2cdev/i2c-error.c 56--- a/libi2cdev/i2c-error.c
62+++ b/libi2cdev/i2c-error.c 57+++ b/libi2cdev/i2c-error.c
63@@ -9,7 +9,6 @@ 58@@ -9,7 +9,6 @@
@@ -68,8 +63,6 @@ index f92fb6b..540c112 100644
68 #include <errno.h> 63 #include <errno.h>
69 #include <stdbool.h> 64 #include <stdbool.h>
70 #include <stdarg.h> 65 #include <stdarg.h>
71diff --git a/libi2cdev/init.c b/libi2cdev/init.c
72index 99a7edd..dfc4090 100644
73--- a/libi2cdev/init.c 66--- a/libi2cdev/init.c
74+++ b/libi2cdev/init.c 67+++ b/libi2cdev/init.c
75@@ -16,10 +16,8 @@ 68@@ -16,10 +16,8 @@
@@ -83,20 +76,18 @@ index 99a7edd..dfc4090 100644
83 #include <fcntl.h> 76 #include <fcntl.h>
84 #include <assert.h> 77 #include <assert.h>
85 78
86diff --git a/libi2cdev/sysfs.c b/libi2cdev/sysfs.c
87index 2811500..a7e13a8 100644
88--- a/libi2cdev/sysfs.c 79--- a/libi2cdev/sysfs.c
89+++ b/libi2cdev/sysfs.c 80+++ b/libi2cdev/sysfs.c
90@@ -17,7 +17,6 @@ 81@@ -17,8 +17,8 @@
91 #include <assert.h> 82 #include <assert.h>
92 #include <string.h> 83 #include <string.h>
93 #include <fcntl.h> 84 #include <fcntl.h>
94-#include <error.h> 85-#include <error.h>
95 #include <errno.h> 86 #include <errno.h>
87+#include <libgen.h>
96 88
97 #include <sys/types.h> 89 #include <sys/types.h>
98diff --git a/lsi2c/lsi2c.c b/lsi2c/lsi2c.c 90 #include <sys/stat.h>
99index 7af5313..34c6225 100644
100--- a/lsi2c/lsi2c.c 91--- a/lsi2c/lsi2c.c
101+++ b/lsi2c/lsi2c.c 92+++ b/lsi2c/lsi2c.c
102@@ -38,7 +38,6 @@ 93@@ -38,7 +38,6 @@
@@ -107,7 +98,7 @@ index 7af5313..34c6225 100644
107 #include <getopt.h> 98 #include <getopt.h>
108 #include <stdbool.h> 99 #include <stdbool.h>
109 100
110@@ -205,7 +204,8 @@ static int read_config_file(const char *config_file_name) 101@@ -205,7 +204,8 @@ static int read_config_file(const char *
111 if (err < 0) { 102 if (err < 0) {
112 err = -err; 103 err = -err;
113 } 104 }
@@ -117,6 +108,3 @@ index 7af5313..34c6225 100644
117 if (config_file) { 108 if (config_file) {
118 fclose(config_file); 109 fclose(config_file);
119 } 110 }
120--
1212.34.1
122