toolchain/external: ensure gcc version is known
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 13 Aug 2015 12:13:23 +0000 (14:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 18 Aug 2015 09:47:23 +0000 (11:47 +0200)
commit23fde76859ddcbc6415f61ddfdd4ee14453eb758
treef9e592ee63e5155975260dee7a52ddaea6f96db2
parentab2a9598fe550f6ac03f0268e40b21d368666d03
toolchain/external: ensure gcc version is known

Currently, when a preconfigured prebuilt toolchain forgets to specify
its gcc version, the error message is a bit misleading, like:

    Incorrect selection of gcc version: expected .x, got 4.9.2

Add a an explicit check for the gcc version being set, that reports a
better error message.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/helpers.mk