search for: klibccppflag

Displaying 20 results from an estimated 31 matches for "klibccppflag".

Did you mean: klibccppflags
2020 Mar 27
2
[PATCH v2 1/5] Kbuild: add support for clang builds
...srctree)/scripts/gcc-version.sh $(CC)) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index afc9a546feca..411d7ea9bea6 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -107,8 +107,15 @@ KLIBCOBJCOPY := $(OBJCOPY) KLIBCOBJDUMP := $(OBJDUMP) # klibc include paths -KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ - -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ +ifeq ($(cc-name),clang) +# clang can't find the compiler-specific header <stdarg.h> if -nostdinc +# is specified so we have to omit it along with the -iwithprefix option. +# See b/35394554. +KLIBCCPPFLAGS...
2013 Aug 21
3
Build problems: klibc with Linux 3.10.7
...KLIBCKERNELSRC=`pwd`/../linux/usr/' + @echo 'make KLIBCKERNELSRC=`pwd`/../linux/' ### # allow one to say make dir/file.o diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..dcfa7d7 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -113,7 +113,7 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ # kernel include paths KLIBCKERNELSRC ?= $(srctree) KLIBCKERNELOBJ ?= $(objtree) -KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \ +KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/usr/include \ $(if $(KBUILD_SRC),-I$(KLIBCKER...
2020 Mar 28
0
[PATCH v2 1/5] Kbuild: add support for clang builds
...hael Davidson <md at google.com> > > Add cc-name to klibc/scripts/Kbuild.include. [...] > --- a/scripts/Kbuild.klibc > +++ b/scripts/Kbuild.klibc > @@ -107,8 +107,15 @@ KLIBCOBJCOPY := $(OBJCOPY) > KLIBCOBJDUMP := $(OBJDUMP) > > # klibc include paths > -KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ > - -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ > +ifeq ($(cc-name),clang) > +# clang can't find the compiler-specific header <stdarg.h> if -nostdinc > +# is specified so we have to omit it along with the -iwithprefix option. > +# See b...
2019 Jan 25
0
[klibc:master] Fix errlist.c generation in out-of-tree build
...t.org.uk> CommitDate: Fri, 25 Jan 2019 02:37:55 +0000 [klibc] Fix errlist.c generation in out-of-tree build Kbuild expands every -I in the compiler options so that in an out-of-tree build both the source directory and corresponding object directory are on the include path. We currently pass $(KLIBCCPPFLAGS) to makeerrlist.pl, which is not expanded, so in an out-of-tree buld it only looks in the object directories and does not find linux/errno.h. Use the flags macro to expand $(KLIBCCPPFLAGS). Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/Kbuild | 3 ++- 1 file changed...
2019 Jan 25
0
[klibc:master] alpha: Fix division routine generation in out-of-tree build
...CommitDate: Fri, 25 Jan 2019 02:38:03 +0000 [klibc] alpha: Fix division routine generation in out-of-tree build Kbuild expands every -I in the compiler options so that in an out-of-tree build both the source directory and corresponding object directory are on the include path. We currently use $(KLIBCCPPFLAGS) when compiling divide.c, which is not expanded, so in an out-of-tree buld the compiler does not find headers in the source tree. Use the flags macro to expand $(KLIBCCPPFLAGS). Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/arch/alpha/Kbuild | 3 ++- 1 file changed,...
2013 Aug 21
3
Build problems: klibc with Linux 3.10.7
Le 21/08/2013 17:36, leroy christophe a ?crit : > > Le 21/08/2013 17:15, maximilian attems a ?crit : >> On Wed, Aug 21, 2013 at 01:39:50PM +0200, leroy christophe wrote: >>> Le 21/08/2013 12:20, maximilian attems a ?crit : >>>> On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: >>>>> Find attached two patches I have in order to build
2020 Mar 29
0
[kvm-unit-tests PATCH v3 1/4] Kbuild: add support for clang builds
...$(call cc-option, -fwrapv, ) \ $(call cc-option, -fno-PIE, ) \ + $(call cc-option, -fno-builtin-bcmp, ) \ -ggdb KLIBCARCHREQFLAGS := KLIBCOPTFLAGS := @@ -108,10 +109,14 @@ KLIBCOBJDUMP := $(OBJDUMP) # klibc include paths KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ - -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ + -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \ - -I$(KLIBCOBJ)/../include \ + -I$(KLIBCOBJ)/../include \...
2020 Jul 25
0
[klibc:master] Kbuild: add support for clang builds
...$(call cc-option, -fwrapv, ) \ $(call cc-option, -fno-PIE, ) \ + $(call cc-option, -fno-builtin-bcmp, ) \ -ggdb KLIBCARCHREQFLAGS := KLIBCOPTFLAGS := @@ -108,10 +109,14 @@ KLIBCOBJDUMP := $(OBJDUMP) # klibc include paths KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ - -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ + -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \ - -I$(KLIBCOBJ)/../include \ + -I$(KLIBCOBJ)/../include \...
2020 Jul 25
0
[klibc:master] Kbuild: Add a per-architecture option to disable exectable stacks
...decadent.org.uk> --- scripts/Kbuild.klibc | 5 ++++- usr/klibc/Kbuild | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index b7e99b56..a9a2a40e 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -118,13 +118,16 @@ KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \ $(if $(KBUILD_SRC),-I$(srctree)/include) \ $(KLIBCARCHINCFLAGS) +# compiler/assembler option for whether we want an executable stack +KLIBCSTACKFLAGS := -Wa,$(if $(filter n,$(KLIBCEXECSTACK)),no)execstack + # klibc definitions...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...and changing step a) too make KLIBCKERNELSRC=`pwd`/../linux/ now, the right Makefile should be called on the install step c. -- maks diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..dcfa7d7 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -113,7 +113,7 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ # kernel include paths KLIBCKERNELSRC ?= $(srctree) KLIBCKERNELOBJ ?= $(objtree) -KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \ +KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/usr/include \ $(if $(KBUILD_SRC),-I$(KLIBCKER...
2019 Jan 21
0
Fwd: Re: Build problems: klibc with Linux 3.10.7
...KLIBCKERNELSRC=`pwd`/../linux/usr/' + @echo 'make KLIBCKERNELSRC=`pwd`/../linux/' ### # allow one to say make dir/file.o diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..dcfa7d7 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -113,7 +113,7 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ # kernel include paths KLIBCKERNELSRC ?= $(srctree) KLIBCKERNELOBJ ?= $(objtree) -KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \ +KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/usr/include \ $(if $(KBUILD_SRC),-I$(KLIB...
2020 Mar 29
7
[kvm-unit-tests PATCH v3 0/4] Update patch set
- Renamed IMAGE_BASE to LD_IMAGE_BASE_OPT. - Moved "-fcommon" to KLIBCREQFLAGS in scripts/Kbuild.klibc. - Remove "dash" warning fixes which have been upstreamed. - Conditionalize the inclusion of compiler flags by using the proper compiler name or "cc-option". - Added "-Werror" to "cc-option" to catch flags that cause warnings. - Retain
2019 Jan 18
0
[klibc:master] Kbuild: Remove KLIBCKERNELOBJ variable
...7 +78,7 @@ KLIBCLDFLAGS := KLIBCCFLAGS := # Defaults for arch to override -KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include +KLIBCARCHINCFLAGS = # Arch specific definitions for klibc include $(srctree)/$(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG @@ -113,10 +113,8 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ -I$(KLIBCINC) # kernel include paths KLIBCKERNELSRC ?= $(srctree) -KLIBCKERNELOBJ ?= $(objtree) -KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \ - $(if $(KBUILD_SRC),-I$(KLIBCKERNELOBJ)/include2 \ -...
2020 Apr 29
2
[PATCH klibc 1/3] Revert " Kbuild: Tell gas we don't want executable stacks"
...usr/klibc/Kbuild | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index afc9a546..b7e99b56 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -125,7 +125,7 @@ KLIBCDEFS += -D__KLIBC__=$(KLIBCMAJOR) \ KLIBCCPPFLAGS += $(KLIBCDEFS) KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \ $(KLIBCOPTFLAGS) $(KLIBCWARNFLAGS) -KLIBCAFLAGS += -D__ASSEMBLY__ -Wa,--noexecstack $(KLIBCCFLAGS) +KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS) KLIBCSTRIPFLAGS += --s...
2013 Dec 26
2
[PATCH] Update header locations for uapi & generated
...ARCH)/include/generated/uapi \ + -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/generated \ + -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include # Arch specific definitions for klibc include $(srctree)/$(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG @@ -113,7 +116,10 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \ # kernel include paths KLIBCKERNELSRC ?= $(srctree) KLIBCKERNELOBJ ?= $(objtree) -KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \ +KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include/uapi \ + -I$(KLIBCKERNELSRC)/include/gen...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
This is a series of patches for clang compatibility: - Using flags needed flags and removing unsupported flags. - Adding support for clang's LLD linker. - Removing a variety of warnings. Bill Wendling (3): [klibc] Kbuild: use "libc.a" with clang [klibc] Kbuild: Add "-fcommon" for clang builds [klibc] Clean up clang warnings Michael Davidson (1): [klibc] Kbuild:
2019 Jan 18
0
[klibc:master] alpha: Support building without glibc headers
...Hutchings <ben at decadent.org.uk> CommitDate: Fri, 18 Jan 2019 03:10:14 +0000 [klibc] alpha: Support building without glibc headers Unless we use the "-nostdinc" option, gcc will implicitly include <bits/stdc-predef.h>, which is usually provided by glibc. This is part of $(KLIBCCPPFLAGS) which we generally include in compiler command lines. Add it to alpha's special rules for compiling the division subroutines. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/arch/alpha/Kbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr...
2020 Feb 29
0
[klibc:master] Kbuild: Tell gas we don't want executable stacks
...usr/klibc/Kbuild | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index b7e99b56..afc9a546 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -125,7 +125,7 @@ KLIBCDEFS += -D__KLIBC__=$(KLIBCMAJOR) \ KLIBCCPPFLAGS += $(KLIBCDEFS) KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \ $(KLIBCOPTFLAGS) $(KLIBCWARNFLAGS) -KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS) +KLIBCAFLAGS += -D__ASSEMBLY__ -Wa,--noexecstack $(KLIBCCFLAGS) KLIBCSTRIPFLAGS += --s...
2020 Jul 25
0
[klibc:master] Revert " Kbuild: Tell gas we don't want executable stacks"
...usr/klibc/Kbuild | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index afc9a546..b7e99b56 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -125,7 +125,7 @@ KLIBCDEFS += -D__KLIBC__=$(KLIBCMAJOR) \ KLIBCCPPFLAGS += $(KLIBCDEFS) KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \ $(KLIBCOPTFLAGS) $(KLIBCWARNFLAGS) -KLIBCAFLAGS += -D__ASSEMBLY__ -Wa,--noexecstack $(KLIBCCFLAGS) +KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS) KLIBCSTRIPFLAGS += --s...
2006 Jun 26
0
[klibc 19/43] klibc basic build infrastructure
...f2 $(srctree)/usr/klibc/version) + +# binutils +KLIBCLD := $(LD) +KLIBCCC := $(CC) +KLIBCAR := $(AR) +KLIBCRANLIB := $(RANLIB) +KLIBCSTRIP := $(STRIP) +KLIBCNM := $(NM) +KLIBCOBJCOPY := $(OBJCOPY) +KLIBCOBJDUMP := $(OBJDUMP) + +# klibc include paths +KLIBCCPPFLAGS := -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ + -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \ + -I$(KLIBCOBJ)/../include \ + -I$(KLIBCINC) +# kernel include paths +KLIBCKERNELSRC ?= $(srctree)/ +KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)include \ +...