Displaying 20 results from an estimated 86 matches for "klibcarch".
2006 Apr 18
1
[patch] sparc build fix
...aximilian attems <maks@sternwelten.at>
---
Has been since long in the Debian and Ubuntu klibc.
diff --git a/klibc/arch/sparc/Makefile.inc b/klibc/arch/sparc/Makefile.inc
index 41c23c5..d77030d 100644
--- a/klibc/arch/sparc/Makefile.inc
+++ b/klibc/arch/sparc/Makefile.inc
@@ -23,25 +23,33 @@ KLIBCARCHOBJS = \
libgcc/__umoddi3.o \
libgcc/__udivmoddi4.o
-arch/$(KLIBCARCH)/sdiv.S: arch/$(KLIBCARCH)/divrem.m4
+arch/$(KLIBCARCH)/sdiv.o: arch/$(KLIBCARCH)/sdiv.S
+
+klibc/arch/$(KLIBCARCH)/sdiv.S: klibc/arch/$(KLIBCARCH)/divrem.m4
@echo 'building $@ from $^'
@(echo "define(NAME,\...
2006 Jun 26
0
[klibc 21/43] alpha support for klibc
...e.inc
@@ -0,0 +1,60 @@
+# -*- makefile -*-
+#
+# arch/alpha/Makefile.inc
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+# Special CFLAGS for the divide code
+DIVCFLAGS = $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \
+ -O3 -fomit-frame-pointer -fcall-saved-1 -fcall-saved-2 \
+ -fcall-saved-3 -fcall-saved-4 -fcall-saved-5 -fcall-saved-6 \
+ -fcall-saved-7 -fcall-saved-8 -ffixed-15 -fcall-saved-16 \
+ -fcall-saved-17 -fcall-saved-18 -fcall-saved-19 -fcall-saved-20 \
+ -fcall-saved-21 -fcall-saved-22 -f...
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
-alway...
2006 Jun 26
0
[klibc 23/43] cris support for klibc
...nd .fini sections
+KLIBCSHAREDFLAGS = --section-start .init=0x0e000100
+
+# The CRIS compiler needs an -iprefix to find libgcc includes when
+# nostdinc is used. It also needs -mlinux to compile linux applications.
+INCLUDE_PREFIX = $(shell $(CC) -print-libgcc-file-name | sed -e s/libgcc.a//)
+KLIBCARCHREQFLAGS = -iprefix $(INCLUDE_PREFIX) -mlinux
+
+# Special flags needed for linking
+KLIBCLDFLAGS += -mcrislinux
diff --git a/usr/klibc/arch/cris/Makefile.inc b/usr/klibc/arch/cris/Makefile.inc
new file mode 100644
index 0000000..ac93d2d
--- /dev/null
+++ b/usr/klibc/arch/cris/Makefile.inc
@@ -0,0...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...a/Makefile 2006-05-11 08:09:08.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.00...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...| 4 +-
26 files 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 PE...
2015 Mar 11
1
Patch: Kbuild.install: *** No rule to make target `headers_install'.
...2]: *** No rule to make target `headers_install'. Stop.
make[1]: *** [header] Error 2
make: *** [install] Error 2
Issue: KLIBCKERNELSRC=`pwd`/linux/usr points to Makefile without
headers_install rule.
Kbuild.install uses wrong Makefile.
Line 81: $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH)
INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
headers_install is not in linux/usr. It is in linux base directory.
Patch:
--- Kbuild.install 2015-03-11 07:29:19.292071162 -0700
+++ Kbuild.install.fix 2015-03-11 07:36:25.973404816 -0700
@@ -95,7 +95,7 @@
$(Q)...
2019 Feb 01
0
[klibc:master] README.klibc: Replace list with sections and headings
...LSRC=`pwd`/../linux/usr/".
+
+It is also possible to install the kernel headers elsewhere and
+point to them there.
- It is also possible to install the kernel headers elsewhere and
- point to them there.
+Cross-compiling
+---------------
+If you're cross-compiling, you need to set KLIBCARCH to the
+appropriate architecture, and set CROSS_COMPILE to your toolchain
+prefix.
-b) If you're cross-compiling, you need to set KLIBCARCH to the
- appropriate architecture, and set CROSS_COMPILE to your toolchain
- prefix.
+IMPORTANT: if you're on a 64-bit machine with a 32-bit user...
2012 Feb 06
1
[PATCH] Fix kernel headers install
...4
--- a/scripts/Kbuild.install
+++ b/scripts/Kbuild.install
@@ -95,7 +95,7 @@ header:
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
- $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
+ $(Q)$(MAKE) -C $(KLIBCKERNELOBJ) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
$(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
$(Q)$(install-data) $(srctr...
2010 Apr 16
2
klibc-1.5.17 build failure on mips
...In function `execl':
execl.c:(.text+0x80): undefined reference to `execve'
usr/klibc/execle.o: In function `execle':
execle.c:(.text+0x84): undefined reference to `execve
........
I am using gcc-4.4.3 toolchain. for kernel 2.6.31. My build command is:
make CROSS_COMPILE=mipsel-linux- KLIBCARCH=mips KBUILD_VERBOSE=1
Googled around and saying that it might work if i disable distcc.
So i added
make CROSS_COMPILE=mipsel-linux- KLIBCARCH=mips KBUILD_VERBOSE=1
FEATURES="-distcc". But no difference.
Any idea what caused this?
Thanks
chris
-------------- next part --------------
An...
2013 Dec 26
2
[PATCH] Update header locations for uapi & generated
...5 ++++-
5 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index f500d53..989a065 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -77,7 +77,10 @@ KLIBCLDFLAGS :=
KLIBCCFLAGS :=
# Defaults for arch to override
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/generated/uapi \
+ -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/generated \
+...
2006 Jun 26
0
[klibc 24/43] i386 support for klibc
...unctions=0 -falign-jumps=0 -falign-loops=0, \
+ -malign-functions=0 -malign-jumps=0 -malign-loops=0)
+gcc_m32_option := $(call cc-option, -m32, )
+
+KLIBCOPTFLAGS = -march=i386 -Os -g -fomit-frame-pointer $(gcc_align_option)
+KLIBCLDFLAGS = -m elf_i386
+KLIBCREQFLAGS += $(REGPARM_OPT)
+KLIBCARCHREQFLAGS += $(gcc_m32_option)
+
+KLIBCBITSIZE = 32
+
+# Extra linkflags when building the shared version of the library
+# This address needs to be reachable using normal inter-module
+# calls, and work on the memory models for this architecture
+# 96 MB - normal binaries start at 128 MB
+KLIBCSHAR...
2013 Aug 21
3
Build problems: klibc with Linux 3.10.7
...IBCKERNELOBJ ?= $(objtree)
-KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \
+KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/usr/include \
$(if $(KBUILD_SRC),-I$(KLIBCKERNELOBJ)/include2 \
-I$(KLIBCKERNELOBJ)/include -I$(srctree)/include) \
$(KLIBCARCHINCFLAGS)
diff --git a/usr/klibc/README.klibc b/usr/klibc/README.klibc
index 7de5fea..3575ec9 100644
--- a/usr/klibc/README.klibc
+++ b/usr/klibc/README.klibc
@@ -9,9 +9,8 @@ this:
a) Extract a recent Linux kernel into a directory and run
"make headers_install".
- Now enter the kl...
2013 Aug 21
3
Build problems: klibc with Linux 3.10.7
...~/src/klibc
>>>> make KLIBCKERNELSRC=`pwd`/../linux/usr/
>>>>
>>>>
>>> Sorry, but without my patchs, 'make install' fails with the
>>> following message (complete messages file attached)
>>>
>>> # make install V=1 KLIBCARCH=ppc CROSS_COMPILE=ppc-linux-
>>> KLIBCKERNELSRC=/root/gen/trunk/knl/linux/usr/
>>> prefix=/tmp/klibc-install
>> have you done step A previously?
>> It seems you are not compiling against the preconfigured linux headers
>> otherwise the headers_install wouldn'...
2009 Jul 17
0
[PATCH] Use headers_install to install headers
...44
--- a/scripts/Kbuild.install
+++ b/scripts/Kbuild.install
@@ -95,16 +95,7 @@ header:
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
- $(Q)set -e ; for d in linux asm asm-$(KLIBCARCH) asm-generic $(ASMKLIBCARCH); do \
- for r in $(KLIBCKERNELSRC)/include $(KLIBCKERNELOBJ)/include \
- $(KLIBCKERNELOBJ)/include2 ; do \
- [ ! -d $$r/$$d ] && continue; \
- mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KLIBCCROSS)include/$$d ; \
- cp -rfL $$r/$$d/. \
-...
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
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at:
2017 Jan 04
0
[lkp-developer] [lib] 0c5a9920fb: WARNING:at_lib/test_linktables/test-linktables.c:#test_linktable_init
...this. I am motivated to figure out but I am stuck!
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index f500d5358ef6..b825daeb8277 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -77,7 +77,8 @@ KLIBCLDFLAGS :=
KLIBCCFLAGS :=
# Defaults for arch to override
-KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include
+KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include \
+ -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include/uapi
# Arch specific definitions for klibc
include $(srctree)/$(KLIBCSRC)/arch/$(KLIBCARCHDIR)/MCONFIG
@@ -114,6 +115...
2013 Aug 21
2
Build problems: klibc with Linux 3.10.7
...> make headers_install
> >
> >B) cd ~/src/klibc
> > make KLIBCKERNELSRC=`pwd`/../linux/usr/
> >
> >
> Sorry, but without my patchs, 'make install' fails with the
> following message (complete messages file attached)
>
> # make install V=1 KLIBCARCH=ppc CROSS_COMPILE=ppc-linux-
> KLIBCKERNELSRC=/root/gen/trunk/knl/linux/usr/
> prefix=/tmp/klibc-install
have you done step A previously?
It seems you are not compiling against the preconfigured linux headers
otherwise the headers_install wouldn't fail.
--
maks
2006 Jun 26
0
[klibc 36/43] sparc64 support for klibc
...644
index 0000000..443250a
--- /dev/null
+++ b/usr/klibc/arch/sparc64/MCONFIG
@@ -0,0 +1,21 @@
+# -*- makefile -*-
+#
+# arch/sparc64/MCONFIG
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+KLIBCARCHREQFLAGS = -m64 -mptr64 -D__sparc64__
+KLIBCOPTFLAGS = -Os
+KLIBCBITSIZE = 64
+
+KLIBCLDFLAGS = -m elf64_sparc
+
+# Extra linkflags when building the shared version of the library
+# This address needs to be reachable using normal inter-module
+# calls, and work on the memory models fo...