patches/uClibc/0.9.29/160-custom-ISA.patch
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
parent 118 264aa721d2a4
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
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)