summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-09-03 10:47:16 -0700
committerKhem Raj <raj.khem@gmail.com>2019-09-03 16:02:03 -0700
commitab3072ee4cf555eb5eb8b6200fd0ffb3eab3f947 (patch)
tree0ae7ca28764678d384e352c80f660b5c0691c91b /meta-initramfs
parenta0cc2d6353672a00e716e7246c4e9ece1e7fedc0 (diff)
downloadmeta-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.patch36
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc1
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 @@
1From 36360b16833400de7818151be5588b16ac4fd5bc Mon Sep 17 00:00:00 2001
2From: Barret Rhoden <brho@google.com>
3Date: Thu, 14 Mar 2019 17:30:38 -0400
4Subject: [PATCH] Fix missing include in sys/mman.h
5
6Linux commit 746c9398f5ac ("arch: move common mmap flags to
7linux/mman.h") moved a few mmap flags, particularly MAP_PRIVATE, from
8asm/mman.h to linux/mman.h. This broke klibc's build, which uses
9MAP_PRIVATE.
10
11linux/mman.h includes asm/mman.h, so this commit merely includes
12linux/mman.h instead of asm/mman.h.
13
14Signed-off-by: Barret Rhoden <brho@google.com>
15Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
16---
17Upstream-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
21diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h
22index 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--
352.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
28ARMPATCHES ?= "" 29ARMPATCHES ?= ""