From patchwork Thu Jul 23 18:56:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 37001 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 n6NIw04v017347 for ; Thu, 23 Jul 2009 18:58:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753259AbZGWS4x (ORCPT ); Thu, 23 Jul 2009 14:56:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754085AbZGWS4x (ORCPT ); Thu, 23 Jul 2009 14:56:53 -0400 Received: from cpsmtpm-eml103.kpnxchange.com ([195.121.3.7]:49901 "EHLO CPSMTPM-EML103.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753658AbZGWS4w (ORCPT ); Thu, 23 Jul 2009 14:56:52 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML103.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Thu, 23 Jul 2009 20:56:51 +0200 From: Frans Pop To: linux-ia64@vger.kernel.org Subject: [PATCH] ia64: minor Makefile simplification through use of cc-ifversion Date: Thu, 23 Jul 2009 20:56:50 +0200 User-Agent: KMail/1.9.9 Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200907232056.51064.elendil@planet.nl> X-OriginalArrivalTime: 23 Jul 2009 18:56:51.0541 (UTC) FILETIME=[56C1A850: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/ia64/Makefile b/arch/ia64/Makefile index 58a7e46..2bf6107 100644 --- a/arch/ia64/Makefile +++ b/arch/ia64/Makefile @@ -41,10 +41,8 @@ $(error Sorry, you need a newer version of the assember, one that is built from ftp://ftp.hpl.hp.com/pub/linux-ia64/gas-030124.tar.gz) endif -ifeq ($(call cc-version),0304) - cflags-$(CONFIG_ITANIUM) += -mtune=merced - cflags-$(CONFIG_MCKINLEY) += -mtune=mckinley -endif +cflags-$(CONFIG_ITANIUM) += $(call cc-ifversion, -eq, 0304, -mtune=merced) +cflags-$(CONFIG_MCKINLEY) += $(call cc-ifversion, -eq, 0304, -mtune=mckinley) KBUILD_CFLAGS += $(cflags-y) head-y := arch/ia64/kernel/head.o arch/ia64/kernel/init_task.o