patches/uClibc/0.9.28.3/140-custom-ISA.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 08 23:37:12 2010 +0200 (2010-10-08)
branch1.8
changeset 2150 f97a8ad2b172
parent 6 4267d95819bd
permissions -rw-r--r--
cc/gcc: fix C++ headers location

In case we build the C++ compiler, we have to tell gcc where to put the C++
headers, or else it will try to # put it in prefix/tuple/include, which we
make a symlink to sysroot/usr/include during the build, and that we delete
(the symlink!) after the build, but gcc will not look in sysroot/usr/inlcude
for C++ headers by default.

Implements a fix suggested by: Bryan Hundven <bryanhundven@gmail.com>

Reported-by: Anthony Foiani <anthony.foiani@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from a0924619112015bdaa81a0a2313d21ef38607bc2)
yann@1
     1
diff -dur uClibc-0.9.28.orig/Rules.mak uClibc-0.9.28/Rules.mak
yann@1
     2
--- uClibc-0.9.28.orig/Rules.mak	2005-08-18 00:49:49.000000000 +0200
yann@1
     3
+++ uClibc-0.9.28/Rules.mak	2007-01-30 10:53:34.000000000 +0100
yann@1
     4
@@ -168,6 +168,7 @@
yann@1
     5
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
yann@1
     6
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
yann@1
     7
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
yann@1
     8
+	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
yann@1
     9
 endif
yann@1
    10
 
yann@1
    11
 ifeq ($(strip $(TARGET_ARCH)),sh)
yann@1
    12
diff -dur uClibc-0.9.28.orig/extra/Configs/Config.mips uClibc-0.9.28/extra/Configs/Config.mips
yann@1
    13
--- uClibc-0.9.28.orig/extra/Configs/Config.mips	2005-08-18 00:49:41.000000000 +0200
yann@1
    14
+++ uClibc-0.9.28/extra/Configs/Config.mips	2007-01-30 10:52:12.000000000 +0100
yann@1
    15
@@ -63,4 +63,16 @@
yann@1
    16
 config CONFIG_MIPS_ISA_MIPS64
yann@1
    17
 	bool "MIPS64"
yann@1
    18
 
yann@1
    19
+config CONFIG_MIPS_ISA_CUSTOM
yann@1
    20
+	bool "Custom"
yann@1
    21
+
yann@1
    22
 endchoice
yann@1
    23
+
yann@1
    24
+config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
yann@1
    25
+	string
yann@1
    26
+	prompt "Custon ISA"
yann@1
    27
+	depends on CONFIG_MIPS_ISA_CUSTOM
yann@1
    28
+	default ""
yann@1
    29
+	help
yann@1
    30
+	  Enter your custom ISA here (eg: lx4189!).
yann@1
    31
+