Argh! I forgot to commit the uClibc-0.9.28.3 patches...
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Mar 04 12:33:12 2007 +0000 (2007-03-04)
changeset 64267d95819bd
parent 5 849ba06dc5c5
child 7 0d85d3316b02
Argh! I forgot to commit the uClibc-0.9.28.3 patches...
patches/uClibc/0.9.28.3/000-string-functions.patch
patches/uClibc/0.9.28.3/001-install_dev.patch
patches/uClibc/0.9.28.3/002-no_LFS-no_readahead.patch
patches/uClibc/0.9.28.3/004-uClibc_ctype.patch
patches/uClibc/0.9.28.3/200-custom-ISA.patch
patches/uClibc/0.9.28.3/201-mips-asm.h.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/uClibc/0.9.28.3/000-string-functions.patch	Sun Mar 04 12:33:12 2007 +0000
     1.3 @@ -0,0 +1,14 @@
     1.4 +Give preference to target-optimised functions over glibc's ones,
     1.5 +which in turn ahave precedence over generic ones.
     1.6 +
     1.7 +--- uClibc.orig/libc/Makefile	2005-07-20 08:10:44.000000000 +0200
     1.8 ++++ uclibc/libc/Makefile	2005-07-28 13:33:40.000000000 +0200
     1.9 +@@ -59,7 +59,7 @@
    1.10 + 	$(AR) dN 2 $(LIBNAME) $$objs && \
    1.11 + 	$(AR) dN 2 $(LIBNAME) $$objs
    1.12 + 	@for objfile in obj.signal \
    1.13 +-	                obj.string.generic obj.string.$(TARGET_ARCH) obj.string \
    1.14 ++	                obj.string obj.string.generic obj.string.$(TARGET_ARCH) \
    1.15 + 	                obj.sysdeps.common obj.sysdeps.$(TARGET_ARCH) ; do \
    1.16 + 		if [ -e $$objfile ] ; then \
    1.17 + 			echo $(AR) $(ARFLAGS) $(LIBNAME) $$objfile ; \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/patches/uClibc/0.9.28.3/001-install_dev.patch	Sun Mar 04 12:33:12 2007 +0000
     2.3 @@ -0,0 +1,22 @@
     2.4 +We know that the kernel headers are in place. Don't try to install them.
     2.5 +
     2.6 +diff -dur uClibc-0.9.28.1.orig/Makefile uClibc-0.9.28.1/Makefile
     2.7 +--- uClibc-0.9.28.1.orig/Makefile	2007-01-28 06:38:00.000000000 +0100
     2.8 ++++ uClibc-0.9.28.1/Makefile	2007-01-28 18:55:46.000000000 +0100
     2.9 +@@ -158,12 +158,10 @@
    2.10 + 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
    2.11 + 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)include
    2.12 + 	-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
    2.13 +-	if [ "$(KERNEL_SOURCE)" = "$(DEVEL_PREFIX)" ] ; then \
    2.14 +-		extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
    2.15 +-	else \
    2.16 +-		extra_exclude="" ; \
    2.17 +-	fi ; \
    2.18 +-	tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
    2.19 ++	extra_exclude="--exclude include/linux --exclude include/asm'*'" ; \
    2.20 ++	tar -chf - include --exclude .svn --exclude CVS \
    2.21 ++	                   --exclude include/linux      \
    2.22 ++	                   --exclude include/asm'*'     \
    2.23 + 		| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
    2.24 + 	echo '/* Dont use _syscall#() macros; use the syscall() function */' > \
    2.25 + 		$(PREFIX)$(DEVEL_PREFIX)include/bits/syscalls.h
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/patches/uClibc/0.9.28.3/002-no_LFS-no_readahead.patch	Sun Mar 04 12:33:12 2007 +0000
     3.3 @@ -0,0 +1,14 @@
     3.4 +diff -dur uClibc-0.9.28.1.orig/libc/sysdeps/linux/common/Makefile uClibc-0.9.28.1/libc/sysdeps/linux/common/Makefile
     3.5 +--- uClibc-0.9.28.1.orig/libc/sysdeps/linux/common/Makefile	2007-01-26 00:54:19.000000000 +0100
     3.6 ++++ uClibc-0.9.28.1/libc/sysdeps/linux/common/Makefile	2007-02-01 08:44:37.000000000 +0100
     3.7 +@@ -25,6 +25,10 @@
     3.8 + SRCS := $(filter-out sbrk.c,$(SRCS))
     3.9 + endif
    3.10 + 
    3.11 ++ifneq ($(strip $(UCLIBC_HAS_LFS)),y)
    3.12 ++SRCS := $(filter-out readahead.c,$(SRCS))
    3.13 ++endif
    3.14 ++
    3.15 + ifneq ($(strip $(UCLIBC_HAS_SSP)),y)
    3.16 + SRCS := $(filter-out ssp.c,$(SRCS))
    3.17 + endif
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/patches/uClibc/0.9.28.3/004-uClibc_ctype.patch	Sun Mar 04 12:33:12 2007 +0000
     4.3 @@ -0,0 +1,17 @@
     4.4 +diff -urN uClibc-dist/libc/sysdeps/linux/common/bits/uClibc_touplow.h uClibc/libc/sysdeps/linux/common/bits/uClibc_touplow.h
     4.5 +--- uClibc-dist/libc/sysdeps/linux/common/bits/uClibc_touplow.h   Fri Jun  3 13:30:25 2005
     4.6 ++++ uClibc/libc/sysdeps/linux/common/bits/uClibc_touplow.h   Fri Jun  3 13:30:39 2005
     4.7 +@@ -34,11 +34,11 @@
     4.8 +
     4.9 + /* glibc uses the equivalent of - typedef __int32_t __ctype_touplow_t; */
    4.10 +
    4.11 +-typedef __uint16_t __ctype_mask_t;
    4.12 ++typedef __uint32_t __ctype_mask_t;
    4.13 +
    4.14 + #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
    4.15 +
    4.16 +-typedef __int16_t __ctype_touplow_t;
    4.17 ++typedef __int32_t __ctype_touplow_t;
    4.18 + #define __UCLIBC_CTYPE_B_TBL_OFFSET       128
    4.19 + #define __UCLIBC_CTYPE_TO_TBL_OFFSET      128
    4.20 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/patches/uClibc/0.9.28.3/200-custom-ISA.patch	Sun Mar 04 12:33:12 2007 +0000
     5.3 @@ -0,0 +1,31 @@
     5.4 +diff -dur uClibc-0.9.28.orig/Rules.mak uClibc-0.9.28/Rules.mak
     5.5 +--- uClibc-0.9.28.orig/Rules.mak	2005-08-18 00:49:49.000000000 +0200
     5.6 ++++ uClibc-0.9.28/Rules.mak	2007-01-30 10:53:34.000000000 +0100
     5.7 +@@ -168,6 +168,7 @@
     5.8 + 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
     5.9 + 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
    5.10 + 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
    5.11 ++	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
    5.12 + endif
    5.13 + 
    5.14 + ifeq ($(strip $(TARGET_ARCH)),sh)
    5.15 +diff -dur uClibc-0.9.28.orig/extra/Configs/Config.mips uClibc-0.9.28/extra/Configs/Config.mips
    5.16 +--- uClibc-0.9.28.orig/extra/Configs/Config.mips	2005-08-18 00:49:41.000000000 +0200
    5.17 ++++ uClibc-0.9.28/extra/Configs/Config.mips	2007-01-30 10:52:12.000000000 +0100
    5.18 +@@ -63,4 +63,16 @@
    5.19 + config CONFIG_MIPS_ISA_MIPS64
    5.20 + 	bool "MIPS64"
    5.21 + 
    5.22 ++config CONFIG_MIPS_ISA_CUSTOM
    5.23 ++	bool "Custom"
    5.24 ++
    5.25 + endchoice
    5.26 ++
    5.27 ++config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
    5.28 ++	string
    5.29 ++	prompt "Custon ISA"
    5.30 ++	depends on CONFIG_MIPS_ISA_CUSTOM
    5.31 ++	default ""
    5.32 ++	help
    5.33 ++	  Enter your custom ISA here (eg: lx4189!).
    5.34 ++
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/patches/uClibc/0.9.28.3/201-mips-asm.h.patch	Sun Mar 04 12:33:12 2007 +0000
     6.3 @@ -0,0 +1,41 @@
     6.4 +diff -dur uClibc-0.9.28.1.orig/libc/sysdeps/linux/mips/clone.S uClibc-0.9.28.1/libc/sysdeps/linux/mips/clone.S
     6.5 +--- uClibc-0.9.28.1.orig/libc/sysdeps/linux/mips/clone.S	2007-02-07 11:18:12.000000000 +0100
     6.6 ++++ uClibc-0.9.28.1/libc/sysdeps/linux/mips/clone.S	2007-02-07 10:41:34.000000000 +0100
     6.7 +@@ -24,7 +24,7 @@
     6.8 + #include <sys/regdef.h>
     6.9 + #define _ERRNO_H	1
    6.10 + #include <bits/errno.h>
    6.11 +-#include <asm/asm.h>
    6.12 ++#include <sys/asm.h>
    6.13 + 
    6.14 + /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */
    6.15 + 
    6.16 +diff -dur uClibc-0.9.28.1.orig/libc/sysdeps/linux/mips/pipe.S uClibc-0.9.28.1/libc/sysdeps/linux/mips/pipe.S
    6.17 +--- uClibc-0.9.28.1.orig/libc/sysdeps/linux/mips/pipe.S	2007-02-07 11:18:12.000000000 +0100
    6.18 ++++ uClibc-0.9.28.1/libc/sysdeps/linux/mips/pipe.S	2007-02-07 11:16:52.000000000 +0100
    6.19 +@@ -3,9 +3,9 @@
    6.20 + /*see uClibc's sh/pipe.c and glibc-2.2.4's mips/pipe.S */
    6.21 + 
    6.22 + #include <features.h>
    6.23 +-#include <asm/asm.h>
    6.24 ++#include <sys/asm.h>
    6.25 + #include <asm/unistd.h>
    6.26 +-#include <asm/regdef.h>
    6.27 ++#include <sys/regdef.h>
    6.28 + 
    6.29 +         .globl  pipe
    6.30 +         .ent    pipe, 0
    6.31 +diff -dur uClibc-0.9.28.1.orig/libc/sysdeps/linux/mips/syscall.S uClibc-0.9.28.1/libc/sysdeps/linux/mips/syscall.S
    6.32 +--- uClibc-0.9.28.1.orig/libc/sysdeps/linux/mips/syscall.S	2007-02-07 11:18:12.000000000 +0100
    6.33 ++++ uClibc-0.9.28.1/libc/sysdeps/linux/mips/syscall.S	2007-02-07 11:17:03.000000000 +0100
    6.34 +@@ -17,8 +17,8 @@
    6.35 +    02111-1307 USA.  */
    6.36 + 
    6.37 + #include <features.h>
    6.38 +-#include <asm/asm.h>
    6.39 +-#include <asm/regdef.h>
    6.40 ++#include <sys/asm.h>
    6.41 ++#include <sys/regdef.h>
    6.42 + 
    6.43 + #ifdef __PIC__
    6.44 + 	.option pic2