patches/uClibc/0.9.29/160-custom-ISA.patch
author Titus von Boxberg <titus@v9g.de>
Mon Aug 22 09:41:35 2011 +0200 (2011-08-22)
branch1.12
changeset 2636 d53c6d529923
parent 118 264aa721d2a4
permissions -rw-r--r--
configure: fix --with-prog=[...]

check_for didn't set variable 'where' when the path to a prog
was passed manually "(cached)".

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from b1be254591e7b524a0b06a2247a9331ebe0faf1d)
     1 diff -dur uClibc-0.9.29.orig/extra/Configs/Config.mips uClibc-0.9.29/extra/Configs/Config.mips
     2 --- uClibc-0.9.29.orig/extra/Configs/Config.mips	2007-03-16 20:38:14.000000000 +0100
     3 +++ uClibc-0.9.29/extra/Configs/Config.mips	2007-05-22 19:30:43.000000000 +0200
     4 @@ -71,4 +71,16 @@
     5  config CONFIG_MIPS_ISA_MIPS64
     6  	bool "MIPS64"
     7  
     8 +config CONFIG_MIPS_ISA_CUSTOM
     9 +	bool "Custom"
    10 +
    11  endchoice
    12 +
    13 +config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
    14 +	string
    15 +	prompt "Custon ISA"
    16 +	depends on CONFIG_MIPS_ISA_CUSTOM
    17 +	default ""
    18 +	help
    19 +	  Enter your custom ISA here (eg: lx4189!).
    20 +
    21 diff -dur uClibc-0.9.29.orig/Rules.mak uClibc-0.9.29/Rules.mak
    22 --- uClibc-0.9.29.orig/Rules.mak	2007-04-17 15:34:11.000000000 +0200
    23 +++ uClibc-0.9.29/Rules.mak	2007-05-22 19:31:48.000000000 +0200
    24 @@ -234,6 +234,7 @@
    25  	CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
    26  	CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
    27  	CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
    28 +	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
    29  endif
    30  
    31  ifeq ($(TARGET_ARCH),nios)