summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-09-08 23:28:29 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-13 11:13:22 +0200
commita2bdc3b9fbf4adc50ccb005d107a8bdd802ad751 (patch)
tree0d224b9727a79cf1373addad6793c6d65eaca957 /meta-initramfs
parent8c037f68f95739482716a5b68d4d1a271bdc51e1 (diff)
downloadmeta-openembedded-a2bdc3b9fbf4adc50ccb005d107a8bdd802ad751.tar.gz
klibc: Fix include_next stdarg.h with clang
Fixes build git/usr/klibc/../include/stdarg.h:9:15: fatal error: 'stdarg.h' file not found | #include_next <stdarg.h> | ^~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch30
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
new file mode 100644
index 000000000..7cd4c0e49
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
@@ -0,0 +1,30 @@
1From 10fb440795a7796140bd657ee028847ec7c34447 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 8 Sep 2017 23:10:54 -0700
4Subject: [PATCH] Kbuild.klibc: Add path to compiler headers via -isystem
5
6We need to include this path so it can find compiler headers e.g.
7stdarg.h which is called from wrapper stdarg.h using include_next
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 scripts/Kbuild.klibc | 5 +++--
12 1 file changed, 3 insertions(+), 2 deletions(-)
13
14diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
15index f500d535..1d5cdc43 100644
16--- a/scripts/Kbuild.klibc
17+++ b/scripts/Kbuild.klibc
18@@ -105,7 +105,8 @@ KLIBCOBJCOPY := $(OBJCOPY)
19 KLIBCOBJDUMP := $(OBJDUMP)
20
21 # klibc include paths
22-KLIBCCPPFLAGS := -nostdinc -iwithprefix include \
23+KLIBCCPPFLAGS := -nostdinc -iwithprefix include \
24+ -isystem $(shell $(CC) -print-file-name=include) \
25 -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \
26 -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \
27 -I$(KLIBCOBJ)/../include \
28--
292.14.1
30
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 45dc6baef..ed15b2e1e 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -18,6 +18,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \
18 file://0001-mkfifo-Implement-mkfifo.patch \ 18 file://0001-mkfifo-Implement-mkfifo.patch \
19 file://0001-always-use-bfd-linker.patch \ 19 file://0001-always-use-bfd-linker.patch \
20 file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \ 20 file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \
21 file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \
21" 22"
22 23
23ARMPATCHES ?= "" 24ARMPATCHES ?= ""