blob: 811075d2380667f78134a53a429cc0272f6806ea [file] [log] [blame]
Eric Andersen2d523c22004-10-09 01:06:03 +00001# Choose gcc version.
Eric Andersen2d523c22004-10-09 01:06:03 +00002
Eric Andersen0134e282004-10-09 05:33:05 +00003comment "Gcc Options"
4
Eric Andersen2d523c22004-10-09 01:06:03 +00005choice
6 prompt "GCC compiler Version"
Bernhard Reutner-Fischerf9636d52007-07-24 18:14:53 +00007 default BR2_GCC_VERSION_4_2_1
Eric Andersen2d523c22004-10-09 01:06:03 +00008 help
9 Select the version of gcc you wish to use.
10
Mike Frysingerce74d2d2004-11-17 22:24:02 +000011 config BR2_GCC_VERSION_3_3_5
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000012 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Mike Frysingerce74d2d2004-11-17 22:24:02 +000013 bool "gcc 3.3.5"
14
Mike Frysinger65e38ef2005-05-24 04:19:13 +000015 config BR2_GCC_VERSION_3_3_6
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000016 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Mike Frysinger65e38ef2005-05-24 04:19:13 +000017 bool "gcc 3.3.6"
18
Eric Andersen2d523c22004-10-09 01:06:03 +000019 config BR2_GCC_VERSION_3_4_2
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000020 depends !BR2_avr32 && BR2_DEPRECATED
Eric Andersen2d523c22004-10-09 01:06:03 +000021 bool "gcc 3.4.2"
22
Mike Frysingerce74d2d2004-11-17 22:24:02 +000023 config BR2_GCC_VERSION_3_4_3
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000024 depends !BR2_avr32 && BR2_DEPRECATED
Mike Frysingerce74d2d2004-11-17 22:24:02 +000025 bool "gcc 3.4.3"
26
Mike Frysinger65e38ef2005-05-24 04:19:13 +000027 config BR2_GCC_VERSION_3_4_4
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000028 depends !BR2_avr32 && BR2_DEPRECATED
Mike Frysinger65e38ef2005-05-24 04:19:13 +000029 bool "gcc 3.4.4"
30
Mike Frysinger75155b52005-12-06 04:56:55 +000031 config BR2_GCC_VERSION_3_4_5
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000032 depends !BR2_avr32 && BR2_DEPRECATED
Mike Frysinger75155b52005-12-06 04:56:55 +000033 bool "gcc 3.4.5"
34
Mike Frysinger42e96092006-03-17 23:58:47 +000035 config BR2_GCC_VERSION_3_4_6
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000036 depends on !BR2_avr32
Mike Frysinger42e96092006-03-17 23:58:47 +000037 bool "gcc 3.4.6"
38
Manuel Novoa III 79a40a32005-04-30 21:57:58 +000039 config BR2_GCC_VERSION_4_0_0
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000040 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Manuel Novoa III 79a40a32005-04-30 21:57:58 +000041 bool "gcc 4.0.0"
42
Mike Frysinger63661112005-07-10 01:46:11 +000043 config BR2_GCC_VERSION_4_0_1
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000044 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Mike Frysinger63661112005-07-10 01:46:11 +000045 bool "gcc 4.0.1"
46
Mike Frysingerb7417342005-10-01 00:32:09 +000047 config BR2_GCC_VERSION_4_0_2
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000048 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Mike Frysingerb7417342005-10-01 00:32:09 +000049 bool "gcc 4.0.2"
50
Mike Frysingere8236302006-03-11 04:51:50 +000051 config BR2_GCC_VERSION_4_0_3
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000052 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Mike Frysingere8236302006-03-11 04:51:50 +000053 bool "gcc 4.0.3"
54
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +000055 config BR2_GCC_VERSION_4_0_4
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000056 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +000057 bool "gcc 4.0.4"
58
59 config BR2_GCC_VERSION_4_1_0
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000060 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
"Steven J. Hill"8a5d57b2005-04-28 03:53:52 +000061 bool "gcc 4.1.0"
62
Peter Korsgaardc1eb4cd2006-05-30 08:25:59 +000063 config BR2_GCC_VERSION_4_1_1
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000064 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Peter Korsgaardc1eb4cd2006-05-30 08:25:59 +000065 bool "gcc 4.1.1"
66
Bernhard Reutner-Fischer67bed992007-01-31 15:09:26 +000067 config BR2_GCC_VERSION_4_1_2
68 depends !BR2_nios2
69 bool "gcc 4.1.2"
70
Bernhard Reutner-Fischerc6eb2ed2007-06-06 18:14:00 +000071 config BR2_GCC_VERSION_4_2_0
Bernhard Reutner-Fischerd9e27232007-08-21 10:32:55 +000072 depends !BR2_avr32 && !BR2_nios2 && BR2_DEPRECATED
Bernhard Reutner-Fischerc6eb2ed2007-06-06 18:14:00 +000073 bool "gcc 4.2.0"
74
Bernhard Reutner-Fischerf9636d52007-07-24 18:14:53 +000075 config BR2_GCC_VERSION_4_2_1
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000076 depends !BR2_avr32 && !BR2_nios2
Bernhard Reutner-Fischerf9636d52007-07-24 18:14:53 +000077 bool "gcc 4.2.1"
78
Bernhard Reutner-Fischerc6eb2ed2007-06-06 18:14:00 +000079# config BR2_GCC_VERSION_4_3
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000080# depends !BR2_avr32 && !BR2_nios2
Bernhard Reutner-Fischerc6eb2ed2007-06-06 18:14:00 +000081# select BR2_GCC_IS_SNAP
82# bool "gcc 4.3"
Bernhard Reutner-Fischer92834c52005-12-06 22:12:15 +000083
Eric Andersen2d523c22004-10-09 01:06:03 +000084endchoice
85
Mike Frysinger7528aaa2006-04-13 05:50:01 +000086config BR2_GCC_IS_SNAP
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +000087 depends !BR2_avr32
Mike Frysinger7528aaa2006-04-13 05:50:01 +000088 bool
89 default n
90
91config BR2_GCC_SNAP_DATE
92 string "GCC snapshot date"
Bernhard Reutner-Fischera6dbba62007-06-24 11:30:05 +000093 default "20070622"
Mike Frysinger7528aaa2006-04-13 05:50:01 +000094 depends BR2_GCC_IS_SNAP
95 help
96 Enter snapshot date to use for gcc. Format is:
97 YYYYMMDD
98
Eric Andersen2d523c22004-10-09 01:06:03 +000099config BR2_GCC_VERSION
100 string
Mike Frysingerce74d2d2004-11-17 22:24:02 +0000101 default "3.3.5" if BR2_GCC_VERSION_3_3_5
Mike Frysinger65e38ef2005-05-24 04:19:13 +0000102 default "3.3.6" if BR2_GCC_VERSION_3_3_6
Eric Andersen2d523c22004-10-09 01:06:03 +0000103 default "3.4.2" if BR2_GCC_VERSION_3_4_2
Mike Frysingerce74d2d2004-11-17 22:24:02 +0000104 default "3.4.3" if BR2_GCC_VERSION_3_4_3
Mike Frysinger65e38ef2005-05-24 04:19:13 +0000105 default "3.4.4" if BR2_GCC_VERSION_3_4_4
Mike Frysinger75155b52005-12-06 04:56:55 +0000106 default "3.4.5" if BR2_GCC_VERSION_3_4_5
Mike Frysinger42e96092006-03-17 23:58:47 +0000107 default "3.4.6" if BR2_GCC_VERSION_3_4_6
Manuel Novoa III 79a40a32005-04-30 21:57:58 +0000108 default "4.0.0" if BR2_GCC_VERSION_4_0_0
Mike Frysinger63661112005-07-10 01:46:11 +0000109 default "4.0.1" if BR2_GCC_VERSION_4_0_1
Mike Frysingerb7417342005-10-01 00:32:09 +0000110 default "4.0.2" if BR2_GCC_VERSION_4_0_2
Mike Frysingere8236302006-03-11 04:51:50 +0000111 default "4.0.3" if BR2_GCC_VERSION_4_0_3
Bernhard Reutner-Fischer7779fd72007-02-09 13:31:55 +0000112 default "4.0.4" if BR2_GCC_VERSION_4_0_4
"Steven J. Hill"8a5d57b2005-04-28 03:53:52 +0000113 default "4.1.0" if BR2_GCC_VERSION_4_1_0
Peter Korsgaardc1eb4cd2006-05-30 08:25:59 +0000114 default "4.1.1" if BR2_GCC_VERSION_4_1_1
Bernhard Reutner-Fischer67bed992007-01-31 15:09:26 +0000115 default "4.1.2" if BR2_GCC_VERSION_4_1_2
Bernhard Reutner-Fischerc6eb2ed2007-06-06 18:14:00 +0000116 default "4.2.0" if BR2_GCC_VERSION_4_2_0
Bernhard Reutner-Fischerf9636d52007-07-24 18:14:53 +0000117 default "4.2.1" if BR2_GCC_VERSION_4_2_1
Bernhard Reutner-Fischerc6eb2ed2007-06-06 18:14:00 +0000118 default "4.3" if BR2_GCC_VERSION_4_3
Eric Andersen2d523c22004-10-09 01:06:03 +0000119
Bernhard Reutner-Fischer80277842007-06-20 11:26:36 +0000120config BR2_TOOLCHAIN_SYSROOT
"Steven J. Hill"ac211be2007-07-05 05:13:46 +0000121 bool "Enable toolchain with --sysroot support"
Ulf Samuelsson840325e2007-07-31 14:59:58 +0000122 depends on !BR2_GCC_VERSION_3_3_5 && !BR2_GCC_VERSION_3_3_6 && !BR2_GCC_VERSION_3_4_2 && !BR2_GCC_VERSION_3_4_3 && !BR2_GCC_VERSION_3_4_4 && !BR2_GCC_VERSION_3_4_5 && !BR2_GCC_VERSION_3_4_6 && !BR2_GCC_VERSION_4_1_2
Bernhard Reutner-Fischer80277842007-06-20 11:26:36 +0000123 default y
124 help
125 Enables --sysroot=dir for binutils and gcc.
126 Use dir as the logical root directory for headers and libraries.
127 For example, if the compiler would normally search for headers in
128 /usr/include and libraries in /usr/lib, it will instead search
129 dir/usr/include and dir/usr/lib.
Eric Andersen2d523c22004-10-09 01:06:03 +0000130
Bernhard Reutner-Fischera6dbba62007-06-24 11:30:05 +0000131 This does not work with gcc < 4.2.0 (4.1.2 gets
132 ORIGINAL_AS_FOR_TARGET wrong)
133
Eric Andersen2d523c22004-10-09 01:06:03 +0000134config BR2_GCC_USE_SJLJ_EXCEPTIONS
Eric Andersenbd7ed092005-07-18 23:34:20 +0000135 bool "Enable setjmp/longjmp exceptions?"
136 default n
Eric Andersen2d523c22004-10-09 01:06:03 +0000137 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000138 For some platforms, proper stack unwinding works perfectly,
139 while other platforms must use setjmp/longjmp exceptions for
140 proper stack unwinding during exception handling. Most people
141 can leave this set to n.
Eric Andersen2d523c22004-10-09 01:06:03 +0000142
143config BR2_EXTRA_GCC_CONFIG_OPTIONS
144 string "Additional gcc options"
145 default ""
146 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000147 Any additional gcc configure options you may want to include....
Eric Andersen2d523c22004-10-09 01:06:03 +0000148
Bernhard Reutner-Fischerba88feb2007-07-31 15:07:06 +0000149config BR2_GCC_CROSS_CXX
150 bool "C++ cross-compiler support"
151 default n
152 help
153 Build a C++ cross-compiler
154
155config BR2_GCC_CROSS_FORTRAN
156 bool "Fortran cross-compiler support"
157 default n
Ulf Samuelsson9601c012007-08-01 19:15:14 +0000158 depends on !BR2_avr32
Bernhard Reutner-Fischerba88feb2007-07-31 15:07:06 +0000159 help
160 Build a Fortran cross-compiler
161
Eric Andersen2d523c22004-10-09 01:06:03 +0000162config BR2_INSTALL_LIBSTDCPP
163 bool "Build/install c++ compiler and libstdc++?"
164 default n
Ulf Samuelsson87111a12007-07-30 18:24:53 +0000165 # >= 4.2.0 work fine without LARGEFILE
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +0000166 # huh? why so? select BR2_LARGEFILE
Ulf Samuelsson87111a12007-07-30 18:24:53 +0000167 select BR2_LARGEFILE if BR2_GCC_VERSION_3_3_5 || BR2_GCC_VERSION_3_3_6 || BR2_GCC_VERSION_3_4_2 || BR2_GCC_VERSION_3_4_3 || BR2_GCC_VERSION_3_4_4 || BR2_GCC_VERSION_3_4_5 || BR2_GCC_VERSION_3_4_6 || BR2_GCC_VERSION_4_0_0 || BR2_GCC_VERSION_4_0_1 || BR2_GCC_VERSION_4_0_2 || BR2_GCC_VERSION_4_0_3 || BR2_GCC_VERSION_4_0_4 || BR2_GCC_VERSION_4_1_0 || BR2_GCC_VERSION_4_1_1 || BR2_GCC_VERSION_4_1_2
Eric Andersen2d523c22004-10-09 01:06:03 +0000168 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000169 Build/install c++ compiler and libstdc++?
Eric Andersen2d523c22004-10-09 01:06:03 +0000170
171config BR2_INSTALL_LIBGCJ
172 bool "Build/install java compiler and libgcj?"
173 default n
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +0000174 depends on !BR2_avr32 && BR2_INSTALL_LIBSTDCPP
Eric Andersen2d523c22004-10-09 01:06:03 +0000175 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000176 Build/install java compiler and libgcj?
Eric Andersena777f262005-02-25 02:38:28 +0000177
178config BR2_INSTALL_OBJC
179 bool "Build/install Objective-C compiler and runtime?"
180 default n
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +0000181 depends on !BR2_avr32
Eric Andersena777f262005-02-25 02:38:28 +0000182 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000183 Build/install Objective-C compiler and runtime?
Eric Andersen6b48b482006-10-02 19:40:44 +0000184
Bernhard Reutner-Fischerdf03c0d2006-12-22 11:45:20 +0000185config BR2_INSTALL_FORTRAN
186 bool "Build/install Fortran compiler and runtime?"
187 default n
Ulf Samuelsson77ae73b2007-07-29 17:36:45 +0000188 depends on !BR2_avr32
Bernhard Reutner-Fischerdf03c0d2006-12-22 11:45:20 +0000189 select BR2_PACKAGE_LIBMPFR
190 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000191 Build/install Fortran compiler and runtime?
192 Note that it is highly recommended NOT to use gfortran
193 from gcc older than 4.2.0
Bernhard Reutner-Fischerdf03c0d2006-12-22 11:45:20 +0000194
Eric Andersen6b48b482006-10-02 19:40:44 +0000195config BR2_GCC_SHARED_LIBGCC
196 bool "Build/install a shared libgcc?"
197 default y
198 help
Bernhard Reutner-Fischerf27735d2007-01-28 11:57:00 +0000199 Build/install a shared libgcc library
Bernhard Reutner-Fischerdf03c0d2006-12-22 11:45:20 +0000200