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: 37002 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6NIw04w017347 for ; Thu, 23 Jul 2009 18:58:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbZGWS5V (ORCPT ); Thu, 23 Jul 2009 14:57:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752659AbZGWS5V (ORCPT ); Thu, 23 Jul 2009 14:57:21 -0400 Received: from cpsmtpm-eml104.kpnxchange.com ([195.121.3.8]:55350 "EHLO CPSMTPM-EML104.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbZGWS5U (ORCPT ); Thu, 23 Jul 2009 14:57:20 -0400 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 Cc: benh@kernel.crashing.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org 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] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Signed-off-by: Frans Pop --- Change was suggested by Sam Ravnborg; see http://lkml.org/lkml/2009/7/18/15. Untested. -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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)