Displaying 20 results from an estimated 33 matches for "klibcarchdir".
2006 May 11
0
[patch] klibc: merge s390 and s390x
....000000000 +0200
+++ b/Makefile 2006-05-11 08:10:07.000000000 +0200
@@ -26,6 +26,7 @@ NOSTDINC_FLAGS := -nostdlib -nostdinc -i
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/parisc64/parisc/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
export KLIBCARCH ?= $(ARCH)
+export KLIBCARCHDIR := $(shell echo $(KLIBCARCH) | sed -e s/s390x/s390/)
export HOSTCC := gcc
export HOSTCFLAGS := -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
diff -purN a/scripts/Kbuild.install b/scripts/Kbuild.install
--- a/scripts/Kbuild.install 2006-05-11 08:09:08.000000000 +0200
+++ b/scripts/Kbuil...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...es changed, 166 insertions(+), 296 deletions(-)
diff -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 HO...
2020 Mar 27
2
[PATCH v2 1/5] Kbuild: add support for clang builds
...s/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 include
+endif
+KLIBCCPP...
2006 Jun 26
0
[klibc 33/43] s390 support for klibc
...0 +1,39 @@
+# -*- makefile -*-
+#
+# arch/s390/Makefile.inc
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+ifneq ("$(KLIBCARCH)", "s390x")
+
+KLIBCARCHOBJS = \
+ arch/$(KLIBCARCHDIR)/setjmp.o \
+ arch/$(KLIBCARCHDIR)/mmap.o \
+ arch/$(KLIBCARCHDIR)/syscall.o \
+ libgcc/__clzsi2.o \
+ libgcc/__clzdi2.o \
+ libgcc/__ashldi3.o \
+ libgcc/__ashrdi3.o \
+ libgcc/__lshrdi3.o \
+ libgcc/__divdi3.o \
+ libgcc/__moddi3.o \
+ libgcc/__udivdi3.o \
+ libgcc/__umoddi3.o \
+ libgcc/__udivmo...
2020 Aug 29
0
[klibc:riscv64-enable-relax] Kbuild, klcc: Support multiple objects in KLIBCCRTSHARED
...x bfe6edb3..28b5e856 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -82,6 +82,7 @@ KLIBCCFLAGS :=
# Defaults for arch to override
KLIBCARCHINCFLAGS =
+KLIBCCRTSHARED := $(KLIBCOBJ)/interp.o
# Arch specific definitions for klibc
include $(srctree)/$(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG
@@ -141,7 +142,6 @@ KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) $(if $(filter gcc,$(cc-nam
KLIBCLIBGCC ?= $(KLIBCLIBGCC_DEF)
KLIBCCRT0 := $(KLIBCOBJ)/arch/$(KLIBCARCHDIR)/crt0.o
KLIBCLIBC := $(KLIBCOBJ)/libc.a
-KLIBCCRTSHARED := $(KLIBCOBJ)/interp.o
KLIBC...
2020 Mar 28
0
[PATCH v2 1/5] Kbuild: add support for clang builds
...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't belong here.
>...
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
0
[kvm-unit-tests PATCH v3 1/4] Kbuild: add support for clang builds
...) \
+ $(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 += -I$(shell $(KLIB...
2020 Jul 25
0
[klibc:master] Kbuild: add support for clang builds
...) \
+ $(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 += -I$(shell $(KLIB...
2020 Mar 27
3
[PATCH v2 3/5] Kbuild: use "libc.a" with clang
...R .comment -R .note
# Don't attempt to set it if we are using clang.
ifneq ($(cc-name),clang)
KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-libgcc)
+else
+KLIBCLIBGCC_DEF := $(KLIBCOBJ)/libc.a
endif
KLIBCLIBGCC ?= $(KLIBCLIBGCC_DEF)
KLIBCCRT0 := $(KLIBCOBJ)/arch/$(KLIBCARCHDIR)/crt0.o
diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG
index ac1ac074c00a..a6ba7c85c68b 100644
--- a/usr/klibc/arch/x86_64/MCONFIG
+++ b/usr/klibc/arch/x86_64/MCONFIG
@@ -26,6 +26,8 @@ ifneq ($(cc-name),clang)
# These options are not supported by clang but only result i...
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
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:
2018 Feb 26
3
[PATCH 1/4] include sys/types.h in more places
Include sys/types.h to avoid compilation warnings:
In file included from $LINUX/usr/include/linux/byteorder/little_endian.h:12:0,
from $LINUX/usr/include/asm/byteorder.h:5,
from $KLIBC/usr/klibc/../include/klibc/endian.h:11,
from $KLIBC/usr/klibc/../include/endian.h:8,
from $KLIBC/usr/klibc/pread.c:7:
2006 Jun 26
0
[klibc 19/43] klibc basic build infrastructure
...---
+
+KLIBCREQFLAGS :=
+KLIBCARCHREQFLAGS :=
+KLIBCOPTFLAGS :=
+KLIBCWARNFLAGS := -W -Wall -Wno-sign-compare -Wno-unused-parameter
+KLIBCSHAREDFLAGS :=
+KLIBCBITSIZE :=
+KLIBCLDFLAGS :=
+KLIBCCFLAGS :=
+
+# Arch specific definitions for klibc
+include $(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG
+
+# include/asm-* architecture
+KLIBCASMARCH ?= $(KLIBCARCH)
+
+# klibc version
+KLIBCMAJOR := $(shell cut -d. -f1 $(srctree)/usr/klibc/version)
+KLIBCMINOR := $(shell cut -d. -f2 $(srctree)/usr/klibc/version)
+
+# binutils
+KLIBCLD := $(LD)
+KLIBCCC := $...
2019 Jan 20
0
[klibc:master] Build and install shared binaries only if KLIBCSHAREDFLAGS is defined
...STALL),1)
# Reset variables (to get right type of assingment)
subdir- :=
+# Read .config if it exist, otherwise ignore
+-include $(objtree)/.config
+
# Include Kbuild file
include $(srctree)/scripts/Kbuild.include
+
+# Arch specific definitions for klibc
+include $(srctree)/$(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG
+
include $(srctree)/$(obj)/Kbuild
# Directories to visit
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index de1cd27..7a8ad2a 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -304,7 +304,10 @@ ifdef kprogs
# Compile klibc-programs for the target
# =========...
2019 Jan 18
0
[klibc:master] use more consistent quoting
...obj)/$(KLIBCCROSS)klibc.config: $(src)/Kbuild \
$(srctree)/Makefile \
$(srctree)/scripts/Kbuild.klibc
- @echo " GEN $@"
+ @echo ' GEN $@'
$(Q)rm -f $@
$(Q)echo 'ARCH=$(KLIBCARCH)' >> $@
$(Q)echo 'ARCHDIR=$(KLIBCARCHDIR)' >> $@
2019 Jan 18
0
[klibc:master] remove some 'make -s' build spew
...j)/$(KLIBCCROSS)klibc.config: $(src)/Kbuild \
$(srctree)/Makefile \
$(srctree)/scripts/Kbuild.klibc
- @echo ' GEN $@'
+ @$(kecho) ' GEN $@'
$(Q)rm -f $@
$(Q)echo 'ARCH=$(KLIBCARCH)' >> $@
$(Q)echo 'ARCHDIR=$(KLIBCARCHDIR)' >> $@
2020 Mar 28
0
[PATCH v2 3/5] Kbuild: use "libc.a" with clang
...tempt to set it if we are using clang.
> ifneq ($(cc-name),clang)
> KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-libgcc)
> +else
> +KLIBCLIBGCC_DEF := $(KLIBCOBJ)/libc.a
> endif
> KLIBCLIBGCC ?= $(KLIBCLIBGCC_DEF)
> KLIBCCRT0 := $(KLIBCOBJ)/arch/$(KLIBCARCHDIR)/crt0.o
> diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG
> index ac1ac074c00a..a6ba7c85c68b 100644
> --- a/usr/klibc/arch/x86_64/MCONFIG
> +++ b/usr/klibc/arch/x86_64/MCONFIG
> @@ -26,6 +26,8 @@ ifneq ($(cc-name),clang)
> # These options are not suppor...
2012 Feb 23
0
Bug#653790: klibc/s390x: searches for include in the wrong path
...de");
>
> --- klibc-1.5.25.orig/klcc/Kbuild
> +++ klibc-1.5.25/klcc/Kbuild
> @@ -10,6 +10,7 @@ $(obj)/$(KLIBCCROSS)klibc.config: $(src)
> @echo " GEN $@"
> $(Q)rm -f $@
> $(Q)echo 'ARCH=$(KLIBCARCH)' >> $@
> + $(Q)echo 'ARCHDIR=$(KLIBCARCHDIR)' >> $@
> $(Q)echo 'CROSS=$(KLIBCROSS)' >> $@
> $(Q)echo 'KCROSS=$(KCROSS)' >> $@
> $(Q)echo 'CC=$(KLIBCCC)' >> $@
>
>
> -- System Information:
> Debian Release: wheezy/sid
> APT prefers unstable
> APT policy...
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
...ompress.o zlib/crc32.o zlib/gzio.o \
- zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o \
- zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o
-
-# zlib specific flag
-KLIBCCFLAGS += -DDYNAMIC_CRC_TABLE
+klib-$(CONFIG_KLIBC_ZLIB) += zlib/
+# arch specific .o files
+klib-y += arch/$(KLIBCARCHDIR)/
#####
# Add any architecture-specific rules
@@ -72,14 +68,14 @@ include $(obj)/arch/$(KLIBCARCHDIR)/Make
#####
# Shared definitions
-LIB := libc.a
+LIBC := libc.a
SOLIB := libc.so
SOHASH := klibc.so
CRT0 := arch/$(KLIBCARCHDIR)/crt0.o
INTERP_O := interp.o
-always...