Skip to content

Commit f2910f0

Browse files
npigginmpe
authored andcommitted
powerpc: remove old GCC version checks
GCC 4.6 is the minimum supported now. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 89ca4e1 commit f2910f0

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

arch/powerpc/Makefile

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -404,36 +404,9 @@ archprepare: checkbin
404404
# to stdout and these checks are run even on install targets.
405405
TOUT := .tmp_gas_check
406406

407-
# Check gcc and binutils versions:
408-
# - gcc-3.4 and binutils-2.14 are a fatal combination
409-
# - Require gcc 4.0 or above on 64-bit
410-
# - gcc-4.2.0 has issues compiling modules on 64-bit
407+
# Check toolchain versions:
408+
# - gcc-4.6 is the minimum kernel-wide version so nothing required.
411409
checkbin:
412-
@if test "$(cc-name)" != "clang" \
413-
&& test "$(cc-version)" = "0304" ; then \
414-
if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \
415-
echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '; \
416-
echo 'correctly with gcc-3.4 and your version of binutils.'; \
417-
echo '*** Please upgrade your binutils or downgrade your gcc'; \
418-
false; \
419-
fi ; \
420-
fi
421-
@if test "$(cc-name)" != "clang" \
422-
&& test "$(cc-version)" -lt "0400" \
423-
&& test "x${CONFIG_PPC64}" = "xy" ; then \
424-
echo -n "Sorry, GCC v4.0 or above is required to build " ; \
425-
echo "the 64-bit powerpc kernel." ; \
426-
false ; \
427-
fi
428-
@if test "$(cc-name)" != "clang" \
429-
&& test "$(cc-fullversion)" = "040200" \
430-
&& test "x${CONFIG_MODULES}${CONFIG_PPC64}" = "xyy" ; then \
431-
echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \
432-
echo 'kernel with modules enabled.' ; \
433-
echo -n '*** Please use a different GCC version or ' ; \
434-
echo 'disable kernel modules' ; \
435-
false ; \
436-
fi
437410
@if test "x${CONFIG_CPU_LITTLE_ENDIAN}" = "xy" \
438411
&& $(LD) --version | head -1 | grep ' 2\.24$$' >/dev/null ; then \
439412
echo -n '*** binutils 2.24 miscompiles weak symbols ' ; \

0 commit comments

Comments
 (0)