summaryrefslogtreecommitdiff
path: root/patches/uClibc/0.9.28.1/150-custom-ISA.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/uClibc/0.9.28.1/150-custom-ISA.patch')
-rw-r--r--patches/uClibc/0.9.28.1/150-custom-ISA.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.28.1/150-custom-ISA.patch b/patches/uClibc/0.9.28.1/150-custom-ISA.patch
new file mode 100644
index 0000000..2cc9bcb
--- /dev/null
+++ b/patches/uClibc/0.9.28.1/150-custom-ISA.patch
@@ -0,0 +1,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!).
++