diff options
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 | ||