gcc: add hidden symbol for defaults
authorWaldemar Brodkorb <wbx@openadk.org>
Fri, 3 Jun 2016 04:03:02 +0000 (06:03 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 4 Jul 2016 08:58:40 +0000 (10:58 +0200)
commitc101f1b1b8fe0b6cf6feb5916d045bc9713e76bd
tree7dd91e657bc00b0814dd04414f7ccab6e8767d3f
parent5c177415eedc7181dde4308cb267e0f811020f18
gcc: add hidden symbol for defaults

Some architectures, f.e. Blackfin doesn't support to configure GCC with
--with-cpu to set some CPU specific default CFLAGS (-mcpu=foo). Use a
hidden config symbol to give a hint which architecture supports it,
otherwise add defaults to toolchain wrapper for internal toolchains.

Idea from Thomas Petazzoni.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
[Thomas:
 - simplify the Config.in logic with just one option named
   BR2_GCC_ARCH_HAS_CONFIGURABLE_DEFAULTS, defined in package/gcc in one
   place.
 - improve the organization of the code and name of variables.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/Config.in.host
package/gcc/gcc.mk