From patchwork Wed Aug 14 22:10:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Domenico Andreoli X-Patchwork-Id: 2844821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DB4CC9F271 for ; Wed, 14 Aug 2013 22:13:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1777A20638 for ; Wed, 14 Aug 2013 22:13:42 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1AF232061A for ; Wed, 14 Aug 2013 22:13:41 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9jJl-0000yC-I1; Wed, 14 Aug 2013 22:13:25 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9jJf-00084I-JI; Wed, 14 Aug 2013 22:13:19 +0000 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9jJQ-00081A-8K for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2013 22:13:05 +0000 Received: by mail-ee0-f42.google.com with SMTP id b45so17343eek.1 for ; Wed, 14 Aug 2013 15:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:user-agent:date:from:to:cc:subject:references :content-disposition; bh=/quPY7Y9aODeVtgajb4sF1yjTlkowhKS37VI4cexkYM=; b=BEHH1MdhRM+H2ZAxphrNF3HTPC1Vikl8aLT6Z2Cb8YfP8p8FUR9/2TN3akoQ8ezuKy aJtr2XJgARUDuGiTQpSrToSkHhVYWHImA/RkBtG+d/VW1BB6RnRgKjsRpxZIksCz7Hn+ rkiawrtpdJAyZJ8VnMimb2e9mkyPaHZC5Xj8WNwXQs3mtFSw5C3ov+ktx144561WGyAr fz06ADzY0JAh17CC0nzYia3uTgCfUHVUW9ONyY/aMQHzK7bepox1BOSWBo5up2kGDQiq HWA9EkfgyYp7bwb0vzg1g28Z7hM0InOpRvogE9W7j+hfcnBaHTKMqlIJwSaeJMAsuhjj WlEg== X-Received: by 10.15.100.198 with SMTP id bn46mr17185814eeb.11.1376518362483; Wed, 14 Aug 2013 15:12:42 -0700 (PDT) Received: from shock.dandreoli.com (j115181.upc-j.chello.nl. [24.132.115.181]) by mx.google.com with ESMTPSA id p5sm78938449eeg.5.2013.08.14.15.12.39 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 15:12:40 -0700 (PDT) Received: by shock.dandreoli.com (Postfix, from userid 1000) id 48BE23400B1; Thu, 15 Aug 2013 00:12:37 +0200 (CEST) Message-Id: <20130814221237.089710222@gmail.com> User-Agent: quilt/0.60-1 Date: Thu, 15 Aug 2013 00:10:44 +0200 From: Domenico Andreoli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/5] ARM: remove duplicates in mach-* and plat-* References: <20130814221043.528864175@gmail.com> Content-Disposition: inline; filename=arm-remove-machdirs-and-platdirs-duplicates.patch X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130814_181304_459397_32DB64B2 X-CRM114-Status: GOOD ( 11.52 ) X-Spam-Score: -1.9 (-) Cc: Olof Johansson , Russell King , Russell King - ARM Linux , Arnd Bergmann , Domenico Andreoli X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Domenico Andreoli This to allow multiple machine/platform options to select the same mach-/plat- subdir without triggering linking errors. Ex. Makefile: machine-$(CONFIG_ARCH_BCM) += bcm machine-$(CONFIG_ARCH_BCM4760) += bcm Taken from Russel's email: http://permalink.gmane.org/gmane.linux.ports.arm.kernel/255431 Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Russell King Signed-off-by: Domenico Andreoli --- arch/arm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: b/arch/arm/Makefile =================================================================== --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -238,8 +238,8 @@ ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) MACHINE := endif -machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) -platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) +machdirs := $(patsubst %,arch/arm/mach-%/,$(sort $(machine-y))) +platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y))) ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) ifeq ($(KBUILD_SRC),)