diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-19 00:02:48 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-19 00:03:59 -0700 |
commit | febd004e6b637915602b4d4c7241cd7289799318 (patch) | |
tree | 7cac2372fcbccab8c25c87f53cf35f4faa8b412b /meta-initramfs/recipes-devtools | |
parent | d1fb6cd8a55a4e7f8158f79da476398fcad033d0 (diff) | |
download | meta-openembedded-febd004e6b637915602b4d4c7241cd7289799318.tar.gz |
klibc: Fix build with kernel 5.19 headers
Backport relevant patch.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch | 34 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch new file mode 100644 index 000000000..4fc4b45fb --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From a33c262f828f803fffdad8e1f44d524dc9c75856 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ben Hutchings <ben@decadent.org.uk> | ||
3 | Date: Wed, 3 Aug 2022 01:10:01 +0200 | ||
4 | Subject: [PATCH] fcntl: Fix build failure for some architectures with Linux | ||
5 | 5.19 | ||
6 | |||
7 | Starting from Linux 5.19, the kernel UAPI headers now only define | ||
8 | __ARCH_FLOCK64_PAD if the architecture actually needs padding in | ||
9 | struct flock64. Wrap its use with #ifdef, | ||
10 | |||
11 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=bb2fde5ddbc18a2e7795ca4d24759230c2aae9d0] | ||
12 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | usr/include/fcntl.h | 2 ++ | ||
16 | 1 file changed, 2 insertions(+) | ||
17 | |||
18 | diff --git a/usr/include/fcntl.h b/usr/include/fcntl.h | ||
19 | index ed703a6..cb2e4e5 100644 | ||
20 | --- a/usr/include/fcntl.h | ||
21 | +++ b/usr/include/fcntl.h | ||
22 | @@ -33,7 +33,9 @@ struct flock { | ||
23 | __kernel_loff_t l_start; | ||
24 | __kernel_loff_t l_len; | ||
25 | __kernel_pid_t l_pid; | ||
26 | +#ifdef __ARCH_FLOCK64_PAD | ||
27 | __ARCH_FLOCK64_PAD | ||
28 | +#endif | ||
29 | }; | ||
30 | |||
31 | #ifdef F_GETLK64 | ||
32 | -- | ||
33 | 2.37.2 | ||
34 | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 4c915af2f..5acf67998 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -20,6 +20,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/libs/klibc/2.0/klibc-${PV}.tar.xz \ | |||
20 | file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ | 20 | file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ |
21 | file://cross-clang.patch \ | 21 | file://cross-clang.patch \ |
22 | file://0001-workaround-for-overlapping-sections-in-binary.patch \ | 22 | file://0001-workaround-for-overlapping-sections-in-binary.patch \ |
23 | file://0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | ARMPATCHES ?= "" | 26 | ARMPATCHES ?= "" |