diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-09-03 10:47:16 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-09-03 16:02:03 -0700 |
commit | ab3072ee4cf555eb5eb8b6200fd0ffb3eab3f947 (patch) | |
tree | 0ae7ca28764678d384e352c80f660b5c0691c91b /meta-initramfs | |
parent | a0cc2d6353672a00e716e7246c4e9ece1e7fedc0 (diff) | |
download | meta-openembedded-ab3072ee4cf555eb5eb8b6200fd0ffb3eab3f947.tar.gz |
klibc: Fix build with 5.2+ kernel headers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch | 36 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch new file mode 100644 index 000000000..4bedef805 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Fix-missing-include-in-sys-mman.h.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 36360b16833400de7818151be5588b16ac4fd5bc Mon Sep 17 00:00:00 2001 | ||
2 | From: Barret Rhoden <brho@google.com> | ||
3 | Date: Thu, 14 Mar 2019 17:30:38 -0400 | ||
4 | Subject: [PATCH] Fix missing include in sys/mman.h | ||
5 | |||
6 | Linux commit 746c9398f5ac ("arch: move common mmap flags to | ||
7 | linux/mman.h") moved a few mmap flags, particularly MAP_PRIVATE, from | ||
8 | asm/mman.h to linux/mman.h. This broke klibc's build, which uses | ||
9 | MAP_PRIVATE. | ||
10 | |||
11 | linux/mman.h includes asm/mman.h, so this commit merely includes | ||
12 | linux/mman.h instead of asm/mman.h. | ||
13 | |||
14 | Signed-off-by: Barret Rhoden <brho@google.com> | ||
15 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
16 | --- | ||
17 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=d4853d030639cf3542ae39129c18b654d8d4f020] | ||
18 | usr/include/sys/mman.h | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h | ||
22 | index 56f0b65c..3fd626e7 100644 | ||
23 | --- a/usr/include/sys/mman.h | ||
24 | +++ b/usr/include/sys/mman.h | ||
25 | @@ -7,7 +7,7 @@ | ||
26 | |||
27 | #include <klibc/extern.h> | ||
28 | #include <sys/types.h> | ||
29 | -#include <asm/mman.h> | ||
30 | +#include <linux/mman.h> | ||
31 | |||
32 | #define MAP_FAILED ((void *)-1) | ||
33 | |||
34 | -- | ||
35 | 2.23.0 | ||
36 | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 86aae3340..26689f87e 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -23,6 +23,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ | |||
23 | file://0001-klibc-add-getrandom-syscall.patch \ | 23 | file://0001-klibc-add-getrandom-syscall.patch \ |
24 | file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ | 24 | file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ |
25 | file://0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch \ | 25 | file://0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch \ |
26 | file://0001-Fix-missing-include-in-sys-mman.h.patch \ | ||
26 | " | 27 | " |
27 | 28 | ||
28 | ARMPATCHES ?= "" | 29 | ARMPATCHES ?= "" |