summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux-libc-headers
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers')
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch30
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.7.bb (renamed from meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.bb)6
2 files changed, 34 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch
new file mode 100644
index 0000000000..2e04701699
--- /dev/null
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch
@@ -0,0 +1,30 @@
1From 897736166fd709906a5fdf16eb23f8fddff770b5 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Thu, 1 Mar 2018 18:31:01 -0500
4Subject: [PATCH] if_ether: move muslc ethhdr protection to uapi file
5
6Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7---
8 include/uapi/linux/if_ether.h | 6 ++++++
9 1 file changed, 6 insertions(+)
10
11diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h
12index 153c9c2..7b69b73 100644
13--- a/include/uapi/linux/if_ether.h
14+++ b/include/uapi/linux/if_ether.h
15@@ -149,6 +149,12 @@
16 * This is an Ethernet frame header.
17 */
18
19+#ifdef _NETINET_IF_ETHER_H /* musl */
20+#define __UAPI_DEF_ETHHDR 0
21+#else /* glibc uses __NETINET_IF_ETHER_H, and includes the kernel header. */
22+#define __UAPI_DEF_ETHHDR 1
23+#endif
24+
25 /* allow libcs like musl to deactivate this, glibc does not implement this. */
26 #ifndef __UAPI_DEF_ETHHDR
27 #define __UAPI_DEF_ETHHDR 1
28--
292.7.4
30
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.7.bb
index b511cd1181..a7db4c9c01 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.bb
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.15.7.bb
@@ -5,7 +5,9 @@ SRC_URI_append_libc-musl = "\
5 file://0002-libc-compat.h-prevent-redefinition-of-struct-ethhdr.patch \ 5 file://0002-libc-compat.h-prevent-redefinition-of-struct-ethhdr.patch \
6 file://0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch \ 6 file://0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch \
7 file://0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch \ 7 file://0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch \
8 file://0001-if_ether-move-muslc-ethhdr-protection-to-uapi-file.patch \
8 " 9 "
9 10
10SRC_URI[md5sum] = "0d701ac1e2a67d47ce7127432df2c32b" 11
11SRC_URI[sha256sum] = "5a26478906d5005f4f809402e981518d2b8844949199f60c4b6e1f986ca2a769" 12SRC_URI[md5sum] = "8186ce63c489199b58b6a58ad2a24a94"
13SRC_URI[sha256sum] = "cd44df4b23a3e0edc14be63df95d768b9600b31c35be05fb89f93226907fc8c6"