2007-02-24 11:00:05 +00:00
|
|
|
# Compiler options
|
2011-05-08 17:02:44 +00:00
|
|
|
#
|
2015-05-29 20:40:49 +00:00
|
|
|
## default y
|
2016-12-16 23:51:04 +00:00
|
|
|
## select CC_SUPPORT_CXX if !LIBC_none
|
2011-05-08 17:02:44 +00:00
|
|
|
## select CC_SUPPORT_FORTRAN
|
2017-05-12 06:16:40 +00:00
|
|
|
## select CC_SUPPORT_JAVA if !CC_GCC_6_or_later
|
2011-05-08 17:02:44 +00:00
|
|
|
## select CC_SUPPORT_ADA
|
|
|
|
## select CC_SUPPORT_OBJC
|
|
|
|
## select CC_SUPPORT_OBJCXX
|
2017-02-19 07:14:52 +00:00
|
|
|
## select CC_SUPPORT_GOLANG
|
2011-05-08 17:02:44 +00:00
|
|
|
##
|
|
|
|
## help gcc is the full-blown GNU compiler. This is what most people will choose.
|
|
|
|
## help
|
|
|
|
## help gcc supports many languages, a powerful code parser, optimised binary
|
|
|
|
## help output, and lots of other features.
|
2008-10-13 16:58:52 +00:00
|
|
|
|
2015-11-26 13:07:37 +00:00
|
|
|
config CC_GCC_CUSTOM
|
|
|
|
bool
|
|
|
|
prompt "Custom gcc"
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
select CC_GCC_latest
|
|
|
|
help
|
|
|
|
The choosen gcc version shall be not downloaded. Instead use
|
|
|
|
a custom location to get the source.
|
|
|
|
|
|
|
|
if CC_GCC_CUSTOM
|
|
|
|
|
|
|
|
config CC_GCC_CUSTOM_LOCATION
|
|
|
|
string
|
|
|
|
prompt "Full path to custom gcc source"
|
|
|
|
help
|
|
|
|
Enter the path to the directory or tarball of your source for gcc.
|
|
|
|
|
|
|
|
If the path is a tarball, it should extract to: <name>-<version>/
|
|
|
|
where the name is this component, gcc, and the version is set
|
|
|
|
below in the custom version string.
|
|
|
|
|
|
|
|
config CC_GCC_CUSTOM_VERSION
|
|
|
|
string
|
|
|
|
prompt "Custom GCC Version"
|
|
|
|
help
|
|
|
|
Enter the version number for your custom gcc.
|
|
|
|
|
|
|
|
config CC_GCC_VERSION
|
|
|
|
string
|
|
|
|
default CC_GCC_CUSTOM_VERSION
|
|
|
|
|
|
|
|
endif #CC_GCC_CUSTOM
|
|
|
|
|
|
|
|
if ! CC_GCC_CUSTOM
|
|
|
|
|
2011-03-26 21:04:22 +00:00
|
|
|
config CC_GCC_SHOW_LINARO
|
|
|
|
bool
|
2012-12-26 18:54:12 +00:00
|
|
|
prompt "Show Linaro versions"
|
2011-03-26 21:04:22 +00:00
|
|
|
help
|
|
|
|
Linaro is maintaining some advanced/more stable/experimental versions
|
|
|
|
of gcc, especially for the ARM architecture.
|
2016-08-25 15:17:22 +00:00
|
|
|
|
2011-03-26 21:04:22 +00:00
|
|
|
Those versions have not been blessed by the gcc comunity (nor have they
|
|
|
|
been cursed either!), but they look to be pretty much stable, and even
|
|
|
|
more stable than the upstream versions. YMMV...
|
2016-08-25 15:17:22 +00:00
|
|
|
|
2011-03-26 21:04:22 +00:00
|
|
|
If you do not know what this Linaro stuff is, then simply say 'n' here,
|
|
|
|
and rest in peace. OTOH, if you know what you are doing, you will be
|
|
|
|
able to use and enjoy :-) the Linaro versions by saying 'y' here.
|
2016-08-25 15:17:22 +00:00
|
|
|
|
2011-03-26 21:04:22 +00:00
|
|
|
Linaro: http://www.linaro.org/
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
choice
|
|
|
|
bool
|
2007-08-15 10:14:43 +00:00
|
|
|
prompt "gcc version"
|
2012-08-22 19:26:10 +00:00
|
|
|
|
2009-09-13 16:38:06 +00:00
|
|
|
# Don't remove next line
|
|
|
|
# CT_INSERT_VERSION_BELOW
|
2017-01-12 02:47:15 +00:00
|
|
|
|
2017-05-12 06:16:40 +00:00
|
|
|
config CC_GCC_V_7_1_0
|
|
|
|
bool
|
|
|
|
prompt "7.1.0"
|
|
|
|
select CC_GCC_7
|
|
|
|
|
2017-02-19 18:56:09 +00:00
|
|
|
config CC_GCC_V_linaro_6_3
|
2016-12-26 01:54:30 +00:00
|
|
|
bool
|
2017-06-05 05:29:30 +00:00
|
|
|
prompt "linaro-6.3-2017.05"
|
2017-02-19 18:56:09 +00:00
|
|
|
depends on CC_GCC_SHOW_LINARO
|
2016-12-26 01:54:30 +00:00
|
|
|
select CC_GCC_6
|
|
|
|
|
2017-02-19 18:56:09 +00:00
|
|
|
config CC_GCC_V_6_3_0
|
2017-01-12 02:47:15 +00:00
|
|
|
bool
|
2017-02-19 18:56:09 +00:00
|
|
|
prompt "6.3.0"
|
2017-01-12 02:47:15 +00:00
|
|
|
select CC_GCC_6
|
|
|
|
|
2017-02-21 00:28:20 +00:00
|
|
|
config CC_GCC_V_linaro_5_4
|
2015-07-19 20:38:00 +00:00
|
|
|
bool
|
2017-06-05 05:29:30 +00:00
|
|
|
prompt "linaro-5.4-2017.05"
|
2017-02-21 00:28:20 +00:00
|
|
|
depends on CC_GCC_SHOW_LINARO
|
gcc: Support only the latest branch releases of gcc
This change, as per #222, reduces the number of supported releases of
gcc to the latest branch releases.
I noticed while doing this work that gcc-4.5.4 was never added, so I
moved patches for gcc-4.5.3 to 4.5.4 and updated the
bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed
upstream in the 4.5.4 release, so this patch is omitted.
I also bumped the avr sample to 4.9.3 from 4.9.2.
With the addition of gcc-5.x, the gcc release team now releases the
major.minor.0 versions, while updates to the branch are available in
svn/git. We'll address that when we get to issue #219. This change just
removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes
CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later.
This is the first of two part changes, as mentioned in #222.
This change is slated for release in 1.22.0. The next change will be
slated for 1.23.0, and will limit gcc versions to what is on
https://gcc.gnu.org under "Release Series and Status", which is
currently 4.9.3 and 5.2.0, although I will also support the previous
supported version. In this example that would be 4.8.5.
Last, but not least, this change also retires AVR32 support.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-29 23:16:51 +00:00
|
|
|
select CC_GCC_5
|
2015-05-02 22:52:04 +00:00
|
|
|
|
2017-02-21 00:28:20 +00:00
|
|
|
config CC_GCC_V_5_4_0
|
2016-01-03 06:31:40 +00:00
|
|
|
bool
|
2017-02-21 00:28:20 +00:00
|
|
|
prompt "5.4.0"
|
2016-01-03 06:31:40 +00:00
|
|
|
select CC_GCC_5
|
|
|
|
|
2015-05-29 20:40:49 +00:00
|
|
|
config CC_GCC_V_linaro_4_9
|
2015-01-06 22:21:28 +00:00
|
|
|
bool
|
2017-02-28 08:57:53 +00:00
|
|
|
prompt "linaro-4.9-2017.01"
|
2015-01-06 22:21:28 +00:00
|
|
|
depends on CC_GCC_SHOW_LINARO
|
|
|
|
select CC_GCC_4_9
|
|
|
|
|
2016-08-25 15:17:22 +00:00
|
|
|
config CC_GCC_V_4_9_4
|
2015-07-10 14:49:37 +00:00
|
|
|
bool
|
2017-02-28 08:57:53 +00:00
|
|
|
prompt "4.9.4"
|
2015-07-10 14:49:37 +00:00
|
|
|
select CC_GCC_4_9
|
|
|
|
|
2015-05-29 20:40:49 +00:00
|
|
|
config CC_GCC_V_linaro_4_8
|
2013-05-05 16:01:47 +00:00
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "linaro-4.8-2015.06 (OBSOLETE)"
|
2013-05-05 16:01:47 +00:00
|
|
|
depends on CC_GCC_SHOW_LINARO
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2013-05-05 16:01:47 +00:00
|
|
|
select CC_GCC_4_8
|
|
|
|
|
2015-07-10 14:49:37 +00:00
|
|
|
config CC_GCC_V_4_8_5
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "4.8.5 (OBSOLETE)"
|
2015-07-10 14:49:37 +00:00
|
|
|
select CC_GCC_4_8
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2015-07-10 14:49:37 +00:00
|
|
|
|
2015-08-29 10:43:43 +00:00
|
|
|
endchoice
|
|
|
|
|
2015-11-26 13:07:37 +00:00
|
|
|
endif # ! CC_GCC_CUSTOM
|
2012-10-11 04:39:41 +00:00
|
|
|
|
2013-05-05 15:59:00 +00:00
|
|
|
config CC_GCC_4_8
|
|
|
|
bool
|
|
|
|
select CC_GCC_4_8_or_later
|
|
|
|
|
|
|
|
config CC_GCC_4_8_or_later
|
2012-08-22 19:26:10 +00:00
|
|
|
bool
|
2013-05-05 15:59:00 +00:00
|
|
|
|
2014-05-11 21:31:54 +00:00
|
|
|
config CC_GCC_4_9
|
|
|
|
bool
|
|
|
|
select CC_GCC_4_9_or_later
|
|
|
|
|
|
|
|
config CC_GCC_4_9_or_later
|
2013-05-05 15:59:00 +00:00
|
|
|
bool
|
|
|
|
select CC_GCC_4_8_or_later
|
2014-05-11 21:31:54 +00:00
|
|
|
|
gcc: Support only the latest branch releases of gcc
This change, as per #222, reduces the number of supported releases of
gcc to the latest branch releases.
I noticed while doing this work that gcc-4.5.4 was never added, so I
moved patches for gcc-4.5.3 to 4.5.4 and updated the
bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed
upstream in the 4.5.4 release, so this patch is omitted.
I also bumped the avr sample to 4.9.3 from 4.9.2.
With the addition of gcc-5.x, the gcc release team now releases the
major.minor.0 versions, while updates to the branch are available in
svn/git. We'll address that when we get to issue #219. This change just
removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes
CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later.
This is the first of two part changes, as mentioned in #222.
This change is slated for release in 1.22.0. The next change will be
slated for 1.23.0, and will limit gcc versions to what is on
https://gcc.gnu.org under "Release Series and Status", which is
currently 4.9.3 and 5.2.0, although I will also support the previous
supported version. In this example that would be 4.8.5.
Last, but not least, this change also retires AVR32 support.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-29 23:16:51 +00:00
|
|
|
config CC_GCC_5
|
2015-07-19 20:38:00 +00:00
|
|
|
bool
|
gcc: Support only the latest branch releases of gcc
This change, as per #222, reduces the number of supported releases of
gcc to the latest branch releases.
I noticed while doing this work that gcc-4.5.4 was never added, so I
moved patches for gcc-4.5.3 to 4.5.4 and updated the
bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed
upstream in the 4.5.4 release, so this patch is omitted.
I also bumped the avr sample to 4.9.3 from 4.9.2.
With the addition of gcc-5.x, the gcc release team now releases the
major.minor.0 versions, while updates to the branch are available in
svn/git. We'll address that when we get to issue #219. This change just
removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes
CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later.
This is the first of two part changes, as mentioned in #222.
This change is slated for release in 1.22.0. The next change will be
slated for 1.23.0, and will limit gcc versions to what is on
https://gcc.gnu.org under "Release Series and Status", which is
currently 4.9.3 and 5.2.0, although I will also support the previous
supported version. In this example that would be 4.8.5.
Last, but not least, this change also retires AVR32 support.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-29 23:16:51 +00:00
|
|
|
select CC_GCC_5_or_later
|
2015-07-19 20:38:00 +00:00
|
|
|
|
gcc: Support only the latest branch releases of gcc
This change, as per #222, reduces the number of supported releases of
gcc to the latest branch releases.
I noticed while doing this work that gcc-4.5.4 was never added, so I
moved patches for gcc-4.5.3 to 4.5.4 and updated the
bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed
upstream in the 4.5.4 release, so this patch is omitted.
I also bumped the avr sample to 4.9.3 from 4.9.2.
With the addition of gcc-5.x, the gcc release team now releases the
major.minor.0 versions, while updates to the branch are available in
svn/git. We'll address that when we get to issue #219. This change just
removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes
CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later.
This is the first of two part changes, as mentioned in #222.
This change is slated for release in 1.22.0. The next change will be
slated for 1.23.0, and will limit gcc versions to what is on
https://gcc.gnu.org under "Release Series and Status", which is
currently 4.9.3 and 5.2.0, although I will also support the previous
supported version. In this example that would be 4.8.5.
Last, but not least, this change also retires AVR32 support.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-29 23:16:51 +00:00
|
|
|
config CC_GCC_5_or_later
|
2014-05-11 21:31:54 +00:00
|
|
|
bool
|
|
|
|
select CC_GCC_4_9_or_later
|
2017-05-12 06:16:40 +00:00
|
|
|
select CC_GCC_HAS_LIBMPX
|
2015-05-02 22:52:04 +00:00
|
|
|
|
2016-05-10 20:27:22 +00:00
|
|
|
config CC_GCC_6
|
|
|
|
bool
|
|
|
|
select CC_GCC_6_or_later
|
|
|
|
|
|
|
|
config CC_GCC_6_or_later
|
|
|
|
bool
|
|
|
|
select CC_GCC_5_or_later
|
gcc: Support only the latest branch releases of gcc
This change, as per #222, reduces the number of supported releases of
gcc to the latest branch releases.
I noticed while doing this work that gcc-4.5.4 was never added, so I
moved patches for gcc-4.5.3 to 4.5.4 and updated the
bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed
upstream in the 4.5.4 release, so this patch is omitted.
I also bumped the avr sample to 4.9.3 from 4.9.2.
With the addition of gcc-5.x, the gcc release team now releases the
major.minor.0 versions, while updates to the branch are available in
svn/git. We'll address that when we get to issue #219. This change just
removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes
CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later.
This is the first of two part changes, as mentioned in #222.
This change is slated for release in 1.22.0. The next change will be
slated for 1.23.0, and will limit gcc versions to what is on
https://gcc.gnu.org under "Release Series and Status", which is
currently 4.9.3 and 5.2.0, although I will also support the previous
supported version. In this example that would be 4.8.5.
Last, but not least, this change also retires AVR32 support.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-29 23:16:51 +00:00
|
|
|
|
2017-05-12 06:16:40 +00:00
|
|
|
config CC_GCC_7
|
|
|
|
bool
|
|
|
|
select CC_GCC_7_or_later
|
|
|
|
|
|
|
|
config CC_GCC_7_or_later
|
2015-05-02 22:52:04 +00:00
|
|
|
bool
|
2016-05-10 20:27:22 +00:00
|
|
|
select CC_GCC_6_or_later
|
2017-05-12 06:16:40 +00:00
|
|
|
|
|
|
|
config CC_GCC_latest
|
|
|
|
bool
|
|
|
|
select CC_GCC_7_or_later
|
2012-08-22 19:26:10 +00:00
|
|
|
|
2011-01-28 17:53:37 +00:00
|
|
|
# Only enable gcc's support for plugins if binutils has it as well
|
2016-04-01 22:43:56 +00:00
|
|
|
# They are useful only when doing LTO, but it does no harm enabling
|
2011-01-28 17:53:37 +00:00
|
|
|
# them even without LTO.
|
|
|
|
config CC_GCC_ENABLE_PLUGINS
|
|
|
|
bool
|
|
|
|
depends on BINUTILS_PLUGINS
|
2011-02-22 22:27:42 +00:00
|
|
|
depends on ! STATIC_TOOLCHAIN
|
2011-01-28 17:53:37 +00:00
|
|
|
default y
|
|
|
|
|
|
|
|
# If binutils installs gold, enable support for gold in gcc
|
|
|
|
config CC_GCC_GOLD
|
|
|
|
bool
|
|
|
|
depends on BINUTILS_GOLD_INSTALLED
|
|
|
|
default y
|
|
|
|
|
2016-09-23 00:01:43 +00:00
|
|
|
config CC_GCC_HAS_LIBMPX
|
|
|
|
bool
|
|
|
|
|
2015-11-26 13:07:37 +00:00
|
|
|
if ! CC_GCC_CUSTOM
|
|
|
|
|
2015-05-29 20:40:49 +00:00
|
|
|
config CC_GCC_VERSION
|
2007-02-24 11:00:05 +00:00
|
|
|
string
|
2009-09-13 16:38:06 +00:00
|
|
|
# Don't remove next line
|
|
|
|
# CT_INSERT_VERSION_STRING_BELOW
|
2017-05-12 06:16:40 +00:00
|
|
|
default "7.1.0" if CC_GCC_V_7_1_0
|
2017-06-05 05:29:30 +00:00
|
|
|
default "linaro-6.3-2017.05" if CC_GCC_V_linaro_6_3
|
2016-12-26 01:54:30 +00:00
|
|
|
default "6.3.0" if CC_GCC_V_6_3_0
|
2017-06-05 05:29:30 +00:00
|
|
|
default "linaro-5.4-2017.05" if CC_GCC_V_linaro_5_4
|
2016-08-24 08:33:24 +00:00
|
|
|
default "5.4.0" if CC_GCC_V_5_4_0
|
2017-02-21 00:28:20 +00:00
|
|
|
default "linaro-4.9-2017.01" if CC_GCC_V_linaro_4_9
|
2016-08-25 15:17:22 +00:00
|
|
|
default "4.9.4" if CC_GCC_V_4_9_4
|
2015-07-12 13:16:14 +00:00
|
|
|
default "linaro-4.8-2015.06" if CC_GCC_V_linaro_4_8
|
2015-07-10 14:49:37 +00:00
|
|
|
default "4.8.5" if CC_GCC_V_4_8_5
|
2007-02-24 11:00:05 +00:00
|
|
|
|
2015-11-26 13:07:37 +00:00
|
|
|
endif # ! CC_GCC_CUSTOM
|
|
|
|
|
2010-07-28 19:28:54 +00:00
|
|
|
config CC_LANG_JAVA_USE_ECJ
|
2007-03-21 21:03:22 +00:00
|
|
|
bool
|
2008-08-07 13:55:30 +00:00
|
|
|
default y
|
2010-07-28 19:28:54 +00:00
|
|
|
depends on CC_LANG_JAVA
|
2011-07-31 20:19:21 +00:00
|
|
|
|
2015-05-29 20:40:49 +00:00
|
|
|
source "config/cc/gcc.in.2"
|