patches/uClibc/0.9.29/160-custom-ISA.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
parent 118 264aa721d2a4
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@118
     1
diff -dur uClibc-0.9.29.orig/extra/Configs/Config.mips uClibc-0.9.29/extra/Configs/Config.mips
yann@118
     2
--- uClibc-0.9.29.orig/extra/Configs/Config.mips	2007-03-16 20:38:14.000000000 +0100
yann@118
     3
+++ uClibc-0.9.29/extra/Configs/Config.mips	2007-05-22 19:30:43.000000000 +0200
yann@118
     4
@@ -71,4 +71,16 @@
yann@118
     5
 config CONFIG_MIPS_ISA_MIPS64
yann@118
     6
 	bool "MIPS64"
yann@118
     7
 
yann@118
     8
+config CONFIG_MIPS_ISA_CUSTOM
yann@118
     9
+	bool "Custom"
yann@118
    10
+
yann@118
    11
 endchoice
yann@118
    12
+
yann@118
    13
+config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
yann@118
    14
+	string
yann@118
    15
+	prompt "Custon ISA"
yann@118
    16
+	depends on CONFIG_MIPS_ISA_CUSTOM
yann@118
    17
+	default ""
yann@118
    18
+	help
yann@118
    19
+	  Enter your custom ISA here (eg: lx4189!).
yann@118
    20
+
yann@118
    21
diff -dur uClibc-0.9.29.orig/Rules.mak uClibc-0.9.29/Rules.mak
yann@118
    22
--- uClibc-0.9.29.orig/Rules.mak	2007-04-17 15:34:11.000000000 +0200
yann@118
    23
+++ uClibc-0.9.29/Rules.mak	2007-05-22 19:31:48.000000000 +0200
yann@118
    24
@@ -234,6 +234,7 @@
yann@118
    25
 	CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
yann@118
    26
 	CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
yann@118
    27
 	CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
yann@118
    28
+	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
yann@118
    29
 endif
yann@118
    30
 
yann@118
    31
 ifeq ($(TARGET_ARCH),nios)