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: 161930 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3391652jan; Mon, 8 Apr 2019 00:55:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNTiamkjf+3C6DYWZqFcsxXtrW6vbInltHALreze48tSvB7lTtMq7RFOF/HFkjSA6ZA6RG X-Received: by 2002:a05:6a00:c1:: with SMTP id e1mr22121285pfj.143.1554710153457; Mon, 08 Apr 2019 00:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554710153; cv=none; d=google.com; s=arc-20160816; b=SZSgQEPFU5G4b9+268JWqFo91TwHGEORpwmOt73kA8tCoE9iBY8kNP+C/uy01Dd8xc HuSGKk9eszIsO0K3pEtfyrdCc6834jFgKvl2TR/2AEVo7jeVlQrIP5g2Yyxa7vQ7U8TM pPErCZe60MCZi17FxbKxek1lF8zxfwt5D6lhg1qnF0zkKLAjGt3DFrf9zS7SwuUxe+zI LWahn3xsr8XdMig3YcJ9KWOSa+Xp/ELnQZ+0gHIaluVB4TbBmAooEd5eaN8xKydpbEIW 5yxFYm98YQiq+2VlQjvFHqBcD3pkEYwWtJrfJPPacldnylL7DusVtRQLJHEnTAT8VFmr E6Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=2mZMfdiHyWUddajl/MAR4lGHyfV3TtjPDk5s5iFxLc8=; b=n7DO1CUvfEC+1zdPQ7AUeuzfoENQFXTZK6352G0iRWSrNKIeJh66EJAYvVALofXPii iSMymYLiiLgxjXm7m4+A0vShHUQee4FnYZqFyhFteu/rTgaZ5J0Hbb+J8Z7Lavj1fbRS SQy65HmcRJlg2x58XRH2Bqqf+zfCUH7IcK0ttxpNpXHodabyxZapdFgJQyeA0D+btZNF wc4i66YRzHL2wCaV5waBbQu6B0htr2lhLCv7Lp19wLZmp8JJQnO6eg0IFqNi9yI2FUTD a3kABxBZEX59cPlcQ4a+iZyn87Cxosyb++oFbmOvwAzDYWZ0bC1pur2m3nyyMTeBNdIJ 25kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2ioMrvxv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72si25899715pgc.362.2019.04.08.00.55.53; Mon, 08 Apr 2019 00:55:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2ioMrvxv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbfDHHzv (ORCPT + 31 others); Mon, 8 Apr 2019 03:55:51 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:33135 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfDHHzv (ORCPT ); Mon, 8 Apr 2019 03:55:51 -0400 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 Cc: linux-arm-kernel@lists.infradead.org, Masahiro Yamada , Russell King , linux-kernel@vger.kernel.org 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.1 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)