search for: klibcinc

Displaying 20 results from an estimated 21 matches for "klibcinc".

Did you mean: klibccc
2020 Mar 27
2
[PATCH v2 1/5] Kbuild: add support for clang builds
...ld.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 := +else +KLIBCCPPFLAGS := -nostdinc -iwithprefix inc...
2020 Mar 28
0
[PATCH v2 1/5] Kbuild: add support for clang builds
...c/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/35394554. This seems to be an internal bug number. It doesn...
2020 Mar 29
0
[kvm-unit-tests PATCH v3 1/4] Kbuild: add support for clang builds
...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 \ -I$(KLIBCINC) +ifeq ($(cc-name),clang) +KLIBCCPPFLAGS...
2020 Jul 25
0
[klibc:master] Kbuild: add support for clang builds
...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 \ -I$(KLIBCINC) +ifeq ($(cc-name),clang) +KLIBCCPPFLAGS...
2006 Apr 17
0
[PATCH] klibc: generate havesyscall in $(objtree) with make O=..
Avoiding full path to KLIBCINC will result in havesyscall.h being generated in the $(objtree). We do not want generated files in the source tree with make O=.. -I parmeters to gcc now prefixed with $(srctree) allowing to pick up the generated .h file in $(objtree) Signed-off-by: Sam Ravnborg <sam@ravnborg.org> --- diff -...
2010 Mar 02
17
[PATCH 00/16] External building, update for 2.6.33 and multiple root devices.
The following patchset implements 3 seperate series of changes. External Building ================= Patches 1 through 8 enable to use of klibc's build system while leaving the src tree pristine (and potentially read only). Specifically: - srctree=<Sources for klibc> - objtree=<Ouput directory for klibc> - KLIBCKERNELSRC=<Kernel sources> - KLIBCKERNELOBJ=<Kernel
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
2006 Apr 11
6
klibc kbuild status
Hi hpa & others. Following is a list of issues that I hope to be addressed soon so we are in even better shape for -mm inclusion. 1) rebuild initramfs when content changes. > It is a simple matter of copying in usr/Makefile from the latest > -linus kernel and replace the 10 first lines with the content from > klibc Kbuild file. 2) havesyscalls.h is not deleted after make
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...purN a/Makefile b/Makefile --- a/Makefile 2006-05-24 15:19:05.000000000 +0200 +++ b/Makefile 2006-05-24 15:43:44.000000000 +0200 @@ -180,6 +180,7 @@ UTS_MACHINE := $(ARCH) # Architecture used to compile user-space code KLIBCARCH ?= $(ARCH) +KLIBCARCHDIR ?= $(ARCH) # klibc definitions export KLIBCINC := usr/include @@ -326,7 +327,7 @@ export VERSION PATCHLEVEL SUBLEVEL KERNE export KLIBCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD export CC CPP AR RANLIB NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS export PERL UTS_MACHINE HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK -export CHECKFLAGS...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...IBCSRC)/arch/$(KLIBCARCH)/MCONFIG +include $(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG # klibc version KLIBCMAJOR := $(shell cut -d. -f1 $(srctree)/usr/klibc/version) @@ -74,7 +74,7 @@ KLIBCOBJCOPY := $(OBJCOPY) KLIBCOBJDUMP := $(OBJDUMP) # klibc include paths -KLIBCCPPFLAGS := -I$(KLIBCINC)/arch/$(KLIBCARCH) \ +KLIBCCPPFLAGS := -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \ -I$(KLIBCINC)/bits$(KLIBCBITSIZE) \ -I$(KLIBCINC) # kernel include paths @@ -93,7 +93,7 @@ KLIBCAFLAGS := -D__ASSEMBLY__ $(KLI KLIBCSTRIPFLAGS := --strip...
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] Kbuild: Remove KLIBCKERNELOBJ variable
...rch/riscv64/MCONFIG | 2 -- usr/klibc/arch/x86_64/MCONFIG | 3 --- 7 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 4386135..a11d1e6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ export VERSION := $(shell cat $(srctree)/$(KLIBCSRC)/version) export KLIBCINC := usr/include export KLIBCOBJ := usr/klibc export KLIBCKERNELSRC ?= linux -export KLIBCKERNELOBJ ?= $(KLIBCKERNELSRC) export VPATH := $(srctree) @@ -135,7 +134,6 @@ help: @echo @echo 'Build options:' @echo 'KLIBCKERNELSRC - Path to a configured linux tree' - @echo '...
2006 Apr 17
0
[PATCH] kbuild: support single targets for klibc and klibc programs
...So I hope to see it in next -mm ! Sam diff --git a/Makefile b/Makefile index e469623..a3c4cb1 100644 --- a/Makefile +++ b/Makefile @@ -181,6 +181,11 @@ UTS_MACHINE := $(ARCH) # Architecture used to compile user-space code KLIBCARCH ?= $(subst powerpc,ppc,$(ARCH)) +# klibc definitions +export KLIBCINC := usr/include +export KLIBCSRC := $(srctree)/usr/klibc +export KLIBCOBJ := $(objtree)/usr/klibc + # SHELL used by kbuild CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ @@ -1283,39 +1288,42 @@ # Single targets are com...
2013 May 09
2
Klibc 2.0.2 build vs -j 30-ish
...d jobs.... KLIBCCC usr/klibc/brk.o ... KLIBCAS usr/klibc/syscalls/getsockopt.o LIST usr/klibc/syscalls/klib.list make[1]: *** [all] Error 2 make: *** [klibc] Error 2 The problem stems from within usr/klibc: sigsuspend.c includes <klibc/havesyscall.h> which is effectively $(objtree)/$(KLIBCINC)/klibc/havesyscall.h, which comes about as a side effect of building $(objtree)/$(obj)/syscalls/syscalls.mk, this happens relatively early while recursively building the 'syscalls' subdirectory (of usr/klibc). However, we have no dependency on this. With "make -j 1" klib-y order...
2006 Jun 26
0
[klibc 19/43] klibc basic build infrastructure
...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 \ + $(if $(KBUILD_SRC),...
2019 Jan 07
4
[PATCH klibc 0/4] Fix the KLIBCKERNEL{SRC,OBJ} mess
We currently use KLIBCKERNELSRC and KLIBCKERNELOBJ variables which used to be required to point to a kernel source and object directories. However the kernel headers were reorganised starting in Linux 3.7 such that that doesn't work properly. This series removes KLIBCKERNELOBJ and changes the use and documentation of KLIBCKERNELSRC to be consistent. Ben. Ben Hutchings (4): [klibc]
2005 Dec 28
0
kbuild: clean a bit better
...tested make clean and I cannot see how I have missed all the *.o files. Maybe cogito played me a trick? Anyway I learned to use git ls-files --others Sam diff --git a/Makefile b/Makefile index 8c500e3..db9b8ac 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ export KLIBCSRC := klibc export KLIBCINC := include export KLIBCOBJ := klibc export KLIBCKERNELSRC := linux/ +include scripts/Kbuild.include export CC := gcc NOSTDINC_FLAGS := -nostdlib -nostdinc -isystem $(shell $(CC) -print-file-name=include) @@ -89,8 +90,29 @@ klibc: test: klibc $(Q)$(MAKE) $(klibc)=klibc/tests +### +#...
2006 Jun 26
0
[klibc 09/43] kbuild: support single targets for klibc and klibc programs
...anged, 21 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 897e647..ea1bae0 100644 --- a/Makefile +++ b/Makefile @@ -181,6 +181,11 @@ UTS_MACHINE := $(ARCH) # Architecture used to compile user-space code KLIBCARCH ?= $(subst powerpc,ppc,$(ARCH)) +# klibc definitions +export KLIBCINC := usr/include +export KLIBCSRC := $(srctree)/usr/klibc +export KLIBCOBJ := $(objtree)/usr/klibc + # SHELL used by kbuild CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ @@ -1281,39 +1286,42 @@ # Single targets are com...
2006 Apr 17
0
[PATCH] klibc: rebuild cpio image when content changes
...;" + echo "" +fi + # If output_file is set we will generate cpio archive and gzip it # we are carefull to delete tmp files if [ ! -z ${output_file} ]; then diff --git a/usr/Kbuild b/usr/Kbuild index c4f5be2..e338cf9 100644 --- a/usr/Kbuild +++ b/usr/Kbuild @@ -8,21 +8,38 @@ export KLIBCINC := $(srctree)/$(src)/inc export KLIBCOBJ := $(objtree)/$(obj)/klibc CONFIG_KLIBC := 1 +klibc-subdir := klibc +usr-subdirs := kinit utils dash gzip +subdir- := $(klibc-subdir) $(usr-subdirs) + +usr-subdirs := $(addprefix _usr_,$(usr-subdirs)) +klibc-subdir := $(addprefix _usr_,$(klibc-sub...
2006 Apr 08
0
[WIP] rebuild initramfs when content changes
...ming. The files are just pasted in below for comments. Gimme a day more to finish it up. Sam Restructured usr/Kbuild: # # kbuild file for usr/ - including initramfs image and klibc # # klibc definitions - to be moved to top-level Makefile later export KLIBCSRC := $(srctree)/$(src)/klibc export KLIBCINC := $(srctree)/$(src)/include export KLIBCOBJ := $(objtree)/$(obj)/klibc CONFIG_KLIBC := 1 # Klibc binaries ifdef CONFIG_KLIBC klibc := -f $(srctree)/scripts/Kbuild.klibc obj .PHONY: klibcdirs $(obj)/initramfs_list: klibcdirs klibcdirs: FORCE $(Q)$(MAKE) $(klibc)=$(src)/klibc $(Q)$(MAKE) $(klib...