diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-04 23:43:00 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-02-04 23:46:45 -0800 |
commit | 16dd9dfe3ff1220642f91e19f8cc0f4815d035a1 (patch) | |
tree | f1afd589bbfc7e1717fa9cd5a0f235a296a8b161 /meta-initramfs/recipes-devtools/klibc/files/cross-clang.patch | |
parent | ac8a6e43b949086018179cce2d91ea637faf0869 (diff) | |
download | meta-openembedded-16dd9dfe3ff1220642f91e19f8cc0f4815d035a1.tar.gz |
klibc: Upgrade to 2.0.8 release
Adjust klcc to work with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/files/cross-clang.patch')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/cross-clang.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/cross-clang.patch b/meta-initramfs/recipes-devtools/klibc/files/cross-clang.patch new file mode 100644 index 0000000000..69799c5c76 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/files/cross-clang.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | --- a/scripts/Kbuild.klibc | ||
2 | +++ b/scripts/Kbuild.klibc | ||
3 | @@ -113,10 +113,8 @@ KLIBCCPPFLAGS := -nostdinc -iwithpref | ||
4 | -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ | ||
5 | -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \ | ||
6 | -I$(KLIBCOBJ)/../include \ | ||
7 | - -I$(KLIBCINC) | ||
8 | -ifeq ($(cc-name),clang) | ||
9 | -KLIBCCPPFLAGS += -I$(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-file-name=include) | ||
10 | -endif | ||
11 | + -I$(KLIBCINC) \ | ||
12 | + -I$(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-file-name=include) | ||
13 | |||
14 | # kernel include paths | ||
15 | KLIBCKERNELSRC ?= $(srctree) | ||
16 | @@ -137,7 +135,7 @@ KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(K | ||
17 | KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS) | ||
18 | KLIBCSTRIPFLAGS += --strip-all -R .comment -R .note | ||
19 | |||
20 | -KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) $(if $(filter gcc,$(cc-name)),--print-libgcc,--print-libgcc-file-name)) | ||
21 | +KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-libgcc-file-name) | ||
22 | KLIBCLIBGCC ?= $(KLIBCLIBGCC_DEF) | ||
23 | KLIBCCRT0 := $(KLIBCOBJ)/arch/$(KLIBCARCHDIR)/crt0.o | ||
24 | KLIBCLIBC := $(KLIBCOBJ)/libc.a | ||