Port the custom ISA patch to uClibc-0.9.29
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 22 20:37:46 2007 +0000 (2007-05-22)
changeset 118264aa721d2a4
parent 117 80c4338ec0a0
child 119 06c8158d8320
Port the custom ISA patch to uClibc-0.9.29
patches/uClibc/0.9.29/500-custom-ISA.patch
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/uClibc/0.9.29/500-custom-ISA.patch	Tue May 22 20:37:46 2007 +0000
     1.3 @@ -0,0 +1,31 @@
     1.4 +diff -dur uClibc-0.9.29.orig/extra/Configs/Config.mips uClibc-0.9.29/extra/Configs/Config.mips
     1.5 +--- uClibc-0.9.29.orig/extra/Configs/Config.mips	2007-03-16 20:38:14.000000000 +0100
     1.6 ++++ uClibc-0.9.29/extra/Configs/Config.mips	2007-05-22 19:30:43.000000000 +0200
     1.7 +@@ -71,4 +71,16 @@
     1.8 + config CONFIG_MIPS_ISA_MIPS64
     1.9 + 	bool "MIPS64"
    1.10 + 
    1.11 ++config CONFIG_MIPS_ISA_CUSTOM
    1.12 ++	bool "Custom"
    1.13 ++
    1.14 + endchoice
    1.15 ++
    1.16 ++config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
    1.17 ++	string
    1.18 ++	prompt "Custon ISA"
    1.19 ++	depends on CONFIG_MIPS_ISA_CUSTOM
    1.20 ++	default ""
    1.21 ++	help
    1.22 ++	  Enter your custom ISA here (eg: lx4189!).
    1.23 ++
    1.24 +diff -dur uClibc-0.9.29.orig/Rules.mak uClibc-0.9.29/Rules.mak
    1.25 +--- uClibc-0.9.29.orig/Rules.mak	2007-04-17 15:34:11.000000000 +0200
    1.26 ++++ uClibc-0.9.29/Rules.mak	2007-05-22 19:31:48.000000000 +0200
    1.27 +@@ -234,6 +234,7 @@
    1.28 + 	CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
    1.29 + 	CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
    1.30 + 	CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
    1.31 ++	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
    1.32 + endif
    1.33 + 
    1.34 + ifeq ($(TARGET_ARCH),nios)