patches/uClibc/0.9.28/150-custom-ISA.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Mar 03 17:41:59 2009 +0000 (2009-03-03)
changeset 1219 2b875ed306c2
parent 1 eeea35fbf182
permissions -rw-r--r--
Allow user to add a directory component in the sys-root path.
Rename CT_DEBUG_INSTALL_DIR to CT_DEBUGROOT_DIR (to match CT_SYSROOT_DIR).
As a side effect, fix creating lib64->lib symlinks.

/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 6 3 3 0 +++---
/trunk/scripts/build/debug/500-strace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +++---
/trunk/scripts/crosstool-NG.sh.in | 16 7 9 0 +++++++---------
/trunk/scripts/functions | 2 1 1 0 +-
/trunk/config/toolchain.in | 17 17 0 0 +++++++++++++++++
8 files changed, 34 insertions(+), 19 deletions(-)
     1 diff -dur uClibc-0.9.28.orig/Rules.mak uClibc-0.9.28/Rules.mak
     2 --- uClibc-0.9.28.orig/Rules.mak	2005-08-18 00:49:49.000000000 +0200
     3 +++ uClibc-0.9.28/Rules.mak	2007-01-30 10:53:34.000000000 +0100
     4 @@ -168,6 +168,7 @@
     5  	CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
     6  	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
     7  	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
     8 +	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
     9  endif
    10  
    11  ifeq ($(strip $(TARGET_ARCH)),sh)
    12 diff -dur uClibc-0.9.28.orig/extra/Configs/Config.mips uClibc-0.9.28/extra/Configs/Config.mips
    13 --- uClibc-0.9.28.orig/extra/Configs/Config.mips	2005-08-18 00:49:41.000000000 +0200
    14 +++ uClibc-0.9.28/extra/Configs/Config.mips	2007-01-30 10:52:12.000000000 +0100
    15 @@ -63,4 +63,16 @@
    16  config CONFIG_MIPS_ISA_MIPS64
    17  	bool "MIPS64"
    18  
    19 +config CONFIG_MIPS_ISA_CUSTOM
    20 +	bool "Custom"
    21 +
    22  endchoice
    23 +
    24 +config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
    25 +	string
    26 +	prompt "Custon ISA"
    27 +	depends on CONFIG_MIPS_ISA_CUSTOM
    28 +	default ""
    29 +	help
    30 +	  Enter your custom ISA here (eg: lx4189!).
    31 +