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.inc2
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch38
-rw-r--r--meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.12.bb (renamed from meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.6.bb)7
3 files changed, 2 insertions, 45 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
index 3a8d32e785..1f5c47f453 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
@@ -60,7 +60,7 @@ KORG_ARCHIVE_COMPRESSION ?= "xz"
60SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.${KORG_ARCHIVE_COMPRESSION}" 60SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v${HEADER_FETCH_VER}/linux-${PV}.tar.${KORG_ARCHIVE_COMPRESSION}"
61UPSTREAM_CHECK_URI = "https://www.kernel.org/" 61UPSTREAM_CHECK_URI = "https://www.kernel.org/"
62 62
63S = "${WORKDIR}/linux-${PV}" 63S = "${UNPACKDIR}/linux-${PV}"
64 64
65EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}"" 65EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}""
66 66
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch
deleted file mode 100644
index 54528b6e6a..0000000000
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 9ca6c6a510bda90954aa2532711200b89dd1df89 Mon Sep 17 00:00:00 2001
2From: Dave Martin <Dave.Martin@arm.com>
3Date: Tue, 11 Dec 2018 19:26:45 +0000
4Subject: [PATCH 1/3] kbuild: install_headers.sh: Strip _UAPI from
5 #if-defined() guards
6
7install_headers.sh knows how to strip the _UAPI prefix from #ifdef/
8ifndef and #define directives used to guard headers against multiple
9or inappropriate inclusion. Currently this does not work for guards
10in the "#if defined()" style, which may be needed for non-trivial
11cases.
12
13This patch adds similar logic so that the _UAPI prefix is also
14stripped from guard directives written using "#if defined()" etc.
15
16This is not completely foolproof, but will work for simple cases of
17using #if defined() to guard against inappropriate header inclusion.
18
19Signed-off-by: Dave Martin <Dave.Martin@arm.com>
20Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
21
22Upstream-Status: Submitted [https://www.spinics.net/lists/arm-kernel/msg694800.html]
23---
24 scripts/headers_install.sh | 1 +
25 1 file changed, 1 insertion(+)
26
27Index: linux-5.4/scripts/headers_install.sh
28===================================================================
29--- linux-5.4.orig/scripts/headers_install.sh
30+++ linux-5.4/scripts/headers_install.sh
31@@ -36,6 +36,7 @@
32 s/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g
33 s/(^|[[:space:](])(inline|asm|volatile)([[:space:](]|$)/\1__\2__\3/g
34 s@#(ifndef|define|endif[[:space:]]*/[*])[[:space:]]*_UAPI@#\1 @
35+ :1;s/(#(if|elif)(.*[^A-Za-z0-9_])defined\([[:space:]]*)_UAPI/\1/;t1
36 ' $INFILE > $TMPFILE || exit 1
37
38 scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ $TMPFILE > $OUTFILE
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.6.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.12.bb
index d68de6ec7e..dd6add38de 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.6.bb
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_6.12.bb
@@ -6,12 +6,7 @@ SRC_URI:append:libc-musl = "\
6 file://0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch \ 6 file://0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch \
7 " 7 "
8 8
9SRC_URI += "\
10 file://0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch \
11"
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 9LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
14 10
15SRC_URI[sha256sum] = "d926a06c63dd8ac7df3f86ee1ffc2ce2a3b81a2d168484e76b5b389aba8e56d0" 11SRC_URI[sha256sum] = "b1a2562be56e42afb3f8489d4c2a7ac472ac23098f1ef1c1e40da601f54625eb"
16
17 12