From patchwork Thu Jul 23 18:57:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 30148 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 72A52B70B0 for ; Fri, 24 Jul 2009 04:57:56 +1000 (EST) Received: by ozlabs.org (Postfix) id 646F3DDD0B; Fri, 24 Jul 2009 04:57:56 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (bilbo.ozlabs.org [203.10.76.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bilbo.ozlabs.org", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 62AF4DDD04 for ; Fri, 24 Jul 2009 04:57:56 +1000 (EST) Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by bilbo.ozlabs.org (Postfix) with ESMTP id 21811B7DC0 for ; Fri, 24 Jul 2009 04:57:32 +1000 (EST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id E9F7AB6F20 for ; Fri, 24 Jul 2009 04:57:23 +1000 (EST) Received: by ozlabs.org (Postfix) id DDC3DDDD1B; Fri, 24 Jul 2009 04:57:23 +1000 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from CPSMTPM-EML104.kpnxchange.com (cpsmtpm-eml104.kpnxchange.com [195.121.3.8]) by ozlabs.org (Postfix) with ESMTP id 3D7AADDD04 for ; Fri, 24 Jul 2009 04:57:22 +1000 (EST) Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML104.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Thu, 23 Jul 2009 20:57:20 +0200 From: Frans Pop To: linuxppc-dev@ozlabs.org Subject: [PATCH] powerpc: minor Makefile simplification through use of cc-ifversion Date: Thu, 23 Jul 2009 20:57:18 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200907232057.19942.elendil@planet.nl> X-OriginalArrivalTime: 23 Jul 2009 18:57:20.0601 (UTC) FILETIME=[6813DC90:01CA0BC7] Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Signed-off-by: Frans Pop Acked-by: Sam Ravnborg --- Change was suggested by Sam Ravnborg; see http://lkml.org/lkml/2009/7/18/15. Untested. diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index bc35f4e..952a396 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -77,7 +77,7 @@ CPP = $(CC) -E $(KBUILD_CFLAGS) CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ ifeq ($(CONFIG_PPC64),y) -GCC_BROKEN_VEC := $(shell if [ $(call cc-version) -lt 0400 ] ; then echo "y"; fi) +GCC_BROKEN_VEC := $(call cc-ifversion, -lt, 0400, y) ifeq ($(CONFIG_POWER4_ONLY),y) ifeq ($(CONFIG_ALTIVEC),y)