From: Tom Rini Date: Fri, 14 Apr 2017 19:47:52 -0400 Subject: [U-Boot] [PATCH 3/3] arm: Warn that starting with v2018.01 gcc-6 or later is required In-Reply-To: <1492213672-20931-1-git-send-email-trini@konsulko.com> References: <1492213672-20931-1-git-send-email-trini@konsulko.com> Message-ID: <1492213672-20931-3-git-send-email-trini@konsulko.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de There are more and more cases where if we do not use gcc-6.0 or later we run into problems where our binaries are too large for the targets. Given the prevalence of gcc-6.0 or later toolchains at this point in time, we give notice now that starting with v2018.01 we will require gcc-6 (or later) for ARM. Signed-off-by: Tom Rini --- arch/arm/config.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 907c69371b94..9d305e1f4448 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -45,7 +45,14 @@ endif # Only test once ifeq ($(CONFIG_$(SPL_)SYS_THUMB_BUILD),y) -archprepare: checkthumb +archprepare: checkthumb checkgcc6 + +checkgcc6: + @if test "$(call cc-name)" = "gcc" -a \ + "$(call cc-version)" -lt "0600"; then \ + echo -n '*** Your GCC is older than 6.0 and will not be '; \ + echo 'supported starting with v2018.01.'; \ + fi checkthumb: @if test "$(call cc-name)" = "gcc" -a \ -- 1.9.1