From patchwork Mon Apr 8 07:54:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10888929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5115114DB for ; Mon, 8 Apr 2019 07:55:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 315C5284AA for ; Mon, 8 Apr 2019 07:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20B942851B; Mon, 8 Apr 2019 07:55:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ADF69284AA for ; Mon, 8 Apr 2019 07:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=T5zoeljbnZoGQkWMAU9o4D5yjIaRF8oEfDRhZR8jXtM=; b=T6X FfG5GcyksA0t7V5/jm6nU3AIsxTgTY95EpRcXRbkfp4CquZFOn2yCPF3PaN45ZBAfpWds7eqXGKja Y6hTHToK/2kRXjrYwfd6fDMoVMbYgYrLtsdWU/rnicALsh4CQ/+tKrzXapIyVvIorEazXPyH9B4qQ 9T7+eyRWfv80QOPx+uqIUXm1Wq3P+cL4vQuf/HGTolz4AEGtrJunpTrSLr6ohkQMAwUAojGCPyWxi W2ozHlXQJes2rPzvJH0rtK+ziz3EQM901gXPdgBCnetX6AolXSOrm6kpw64fwrKkzvz4qqYClO+0Y uT3L42oumz1tDY/f7ni1C22lfWIT3wg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDP7X-00020b-4c; Mon, 08 Apr 2019 07:55:11 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDP7T-0001Lp-PN for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2019 07:55:09 +0000 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id x387sSoo029620; Mon, 8 Apr 2019 16:54:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x387sSoo029620 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554710069; bh=2mZMfdiHyWUddajl/MAR4lGHyfV3TtjPDk5s5iFxLc8=; h=From:To:Cc:Subject:Date:From; b=2ioMrvxv0qwfshvxv0VMy0EZAkgMjxTfThy3Vkn1Ur6+x6P1fRPccAtkTu0EiCS5J t5bIGY7TTgRwVMrKWuBlgzOxX9/N1fX07s84CSS83iAbwv8L9dR8cINdLZFO/TgZB3 +xkTgUanG6PoT5UixHA7fwLCxvc3qvXLvUj5SlGE6IFBPHQaINAlh+pU55h3CrSIUI 8/bco5Pk0/Sz1ULADeeqdcGYIdbYvuNSHliT6ZTjgYBK5VrcKFKzQmHDyMyAecaAET dVJTpD+Z5JgYVB6HqFogSIaw4nDJbC0T203w1kTOmYbmtmD7qP5B/KzBD2tAHLF66D JDbSA1ZwelG/g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: arm@kernel.org, Olof Johansson , Arnd Bergmann Subject: [PATCH 1/3] ARM: visit mach-* and plat-* directories when cleaning Date: Mon, 8 Apr 2019 16:54:25 +0900 Message-Id: <20190408075427.6052-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190408_005508_170868_E28F441D X-CRM114-Status: UNSURE ( 5.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masahiro Yamada , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When you run "make clean" for arm, it never visits mach-* or plat-* directories because machine-y and plat-y are just empty. When cleaning, all machine, plat directories are accumulated to machine-, plat-, respectively. So, let's pass them to core- to clean up those directories. Signed-off-by: Masahiro Yamada --- arch/arm/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 807a7d06c2a0..b6693a3ddcca 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -293,6 +293,10 @@ core-y += arch/arm/crypto/ core-y += arch/arm/firmware/ core-y += $(machdirs) $(platdirs) +# For cleaning +core- += $(patsubst %,arch/arm/mach-%/, $(machine-)) +core- += $(patsubst %,arch/arm/plat-%/, $(plat-)) + drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ libs-y := arch/arm/lib/ $(libs-y)