]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
powerpc: remove old GCC version checks
authorNicholas Piggin <npiggin@gmail.com>
Fri, 14 Sep 2018 05:08:52 +0000 (15:08 +1000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
BugLink: https://bugs.launchpad.net/bugs/1837477
commit f2910f0e6835339e6ce82cef22fa15718b7e3bfa upstream.

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>
[nc: Applied to minimize unnecessary conflicts]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/powerpc/Makefile

index 462454494b033a7afd0749dd380b1f7dedde3156..582ec5695118e6fa04f763834f2bd0f290e18bba 100644 (file)
@@ -402,36 +402,9 @@ archprepare: checkbin
 # to stdout and these checks are run even on install targets.
 TOUT   := .tmp_gas_check
 
-# 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
+# Check toolchain versions:
+# - gcc-4.6 is the minimum kernel-wide version so nothing required.
 checkbin:
-       @if test "$(cc-name)" != "clang" \
-           && test "$(cc-version)" = "0304" ; then \
-               if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \
-                       echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '; \
-                       echo 'correctly with gcc-3.4 and your version of binutils.'; \
-                       echo '*** Please upgrade your binutils or downgrade your gcc'; \
-                       false; \
-               fi ; \
-       fi
-       @if test "$(cc-name)" != "clang" \
-           && test "$(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 "$(cc-name)" != "clang" \
-           && test "$(cc-fullversion)" = "040200" \
-           && test "x${CONFIG_MODULES}${CONFIG_PPC64}" = "xyy" ; then \
-               echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \
-               echo 'kernel with modules enabled.' ; \
-               echo -n '*** Please use a different GCC version or ' ; \
-               echo 'disable kernel modules' ; \
-               false ; \
-       fi
        @if test "x${CONFIG_CPU_LITTLE_ENDIAN}" = "xy" \
            && $(LD) --version | head -1 | grep ' 2\.24$$' >/dev/null ; then \
                echo -n '*** binutils 2.24 miscompiles weak symbols ' ; \