toolchain-external: add support for gcc version dependency
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Aug 2015 18:00:35 +0000 (20:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Aug 2015 10:11:20 +0000 (12:11 +0200)
commitbd760c3f5146c75e05ede023f8ef0afd8bce5d74
tree988657c6169d062bada66f773b91c7c1c7424e34
parentc67540ef9b98139c00409b44a1bfbaff3189b8e9
toolchain-external: add support for gcc version dependency

This commit wires up the gcc version dependency mechanism in the
external toolchain backend. To do so, it:

 * Changes the definition of all pre-defined external toolchain
   profiles to select the appropriate BR2_TOOLCHAIN_GCC_AT_LEAST_*
   option.

 * For custom external toolchains, provides a visible Config.in
   "choice" to select the gcc version used in the external toolchain.

 * Adds a new check_gcc_version function, that verifies that the real
   gcc version found in the external toolchain matches the one
   declared in the Buildroot configuration.

[Thomas: use better sed expression proposed by Yann E. Morin, which
works with more cases.]

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/helpers.mk
toolchain/toolchain-external/Config.in
toolchain/toolchain-external/toolchain-external.mk