summaryrefslogtreecommitdiff
path: root/patches/uClibc/0.9.28.2/200-custom-ISA.patch
blob: 2cc9bcb55ad2e1ee4402388b262c62860d089745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -dur uClibc-0.9.28.orig/Rules.mak uClibc-0.9.28/Rules.mak
--- uClibc-0.9.28.orig/Rules.mak	2005-08-18 00:49:49.000000000 +0200
+++ uClibc-0.9.28/Rules.mak	2007-01-30 10:53:34.000000000 +0100
@@ -168,6 +168,7 @@
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
+	CPU_CFLAGS-$(CONFIG_MIPS_ISA_CUSTOM)+=-march=$(CONFIG_MIPS_CPU_CFLAGS_CUSTOM)
 endif
 
 ifeq ($(strip $(TARGET_ARCH)),sh)
diff -dur uClibc-0.9.28.orig/extra/Configs/Config.mips uClibc-0.9.28/extra/Configs/Config.mips
--- uClibc-0.9.28.orig/extra/Configs/Config.mips	2005-08-18 00:49:41.000000000 +0200
+++ uClibc-0.9.28/extra/Configs/Config.mips	2007-01-30 10:52:12.000000000 +0100
@@ -63,4 +63,16 @@
 config CONFIG_MIPS_ISA_MIPS64
 	bool "MIPS64"
 
+config CONFIG_MIPS_ISA_CUSTOM
+	bool "Custom"
+
 endchoice
+
+config CONFIG_MIPS_CPU_CFLAGS_CUSTOM
+	string
+	prompt "Custon ISA"
+	depends on CONFIG_MIPS_ISA_CUSTOM
+	default ""
+	help
+	  Enter your custom ISA here (eg: lx4189!).
+