From 2bc56929281db5698e1fbbf3affc29f54b58665e Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Tue, 17 Apr 2012 18:42:54 +0000 Subject: [PATCH] --- yaml --- r: 305359 b: refs/heads/master c: 82a8508406906a39ed04cb59d83b1703d78dc8b3 h: refs/heads/master i: 305357: 4965edefc2e64f0a2ffc25c530a36e9bfcccb354 305355: 054b95205a37b63ef87013d755d950952326fdc8 305351: 351eaa309240835883e83f39568f115f6f8643a7 305343: 9ae7c620880643258e6ca2e38d723e16c068f8fd v: v3 --- [refs] | 2 +- trunk/arch/powerpc/Makefile | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 23f120be2e74..a86e90e16974 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 694caf0255dcab506d1e174c96a65ab65d96e108 +refs/heads/master: 82a8508406906a39ed04cb59d83b1703d78dc8b3 diff --git a/trunk/arch/powerpc/Makefile b/trunk/arch/powerpc/Makefile index 6524c6e21896..68455ddb63b7 100644 --- a/trunk/arch/powerpc/Makefile +++ b/trunk/arch/powerpc/Makefile @@ -234,10 +234,11 @@ archprepare: checkbin # Use the file '.tmp_gas_check' for binutils tests, as gas won't output # to stdout and these checks are run even on install targets. TOUT := .tmp_gas_check -# Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later for altivec -# instructions. -# gcc-3.4 and binutils-2.14 are a fatal combination. +# Check gcc and binutils versions: +# - gcc-3.4 and binutils-2.14 are a fatal combination +# - Require gcc 4.0 or above on 64-bit +# - gcc-4.2.0 has issues compiling modules on 64-bit checkbin: @if test "$(call cc-version)" = "0304" ; then \ if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \ @@ -247,6 +248,12 @@ checkbin: false; \ fi ; \ fi + @if test "$(call cc-version)" -lt "0400" \ + && test "x${CONFIG_PPC64}" = "xy" ; then \ + echo -n "Sorry, GCC v4.0 or above is required to build " ; \ + echo "the 64-bit powerpc kernel." ; \ + false ; \ + fi @if test "$(call cc-fullversion)" = "040200" \ && test "x${CONFIG_MODULES}${CONFIG_PPC64}" = "xyy" ; then \ echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \