build: prereq: tidy gcc version checks
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tue, 24 Mar 2020 11:05:27 +0000 (11:05 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 May 2020 12:43:08 +0000 (14:43 +0200)
commit7b3ada8c6df8e0032acabd48ec8bff0d75643759
tree3db35076e0996a80f5d8f7c8c68d73e2904de4cf
parente1d4612e0a080e8dfb4855e791359f44ac8d792f
build: prereq: tidy gcc version checks

There is a restriction in the number of parameters(10)  that may be passed to
the SetupHostCommand macro so continually adding explicit gcc'n' version
checks ends up breaking the compiler check for the later versions and
oddballs like Darwin as was done in 835d1c68a0 which added gcc10.

Drop all the explicitly specified gcc version checks.  If a suitable gcc
compiler is not found, it may be specified at the dependency checking
stage after which that version will be symlinked into the build staging
host directory.

eg. 'CC=gccfoo CXX=g++foo make prereq'

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Acked-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1fb3c003d68d3feaf797e8b64edccc9fa622d250)
include/prereq-build.mk