Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2470044ybl; Sat, 24 Aug 2019 18:33:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcw0FwJhgfKWJI8AFDh7HPffs1GVy0KtsYHvi4busElgjqrOROYl/mbxEedy4bqTEAjw14 X-Received: by 2002:a65:6102:: with SMTP id z2mr10146359pgu.391.1566696821774; Sat, 24 Aug 2019 18:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566696821; cv=none; d=google.com; s=arc-20160816; b=kfuXkJId4nsFbNCkXe1elRAeCxU3p/cunoLDI0Nw+fRKxbhTqiZmXJeWj0sbM5V6Yq 0b+8y8B4OVTrEk09tIKsJQBi0867j01NEcQgeGeNaqRn9s4V7uc+iFjIcc/dFgrmlcoe aWm8craNU5kJ5xUu1RVBzodDlVhZFyS3m2YMs38zP7oVE/3y+qe5Etkexc+B505CLcun ZigqSuwpPpIaxG5xMeyLiULZ92AaUbMBFiFxQMnDKXrRItE9kSxt4V7kB6HRmtMEwZdF DZ0t/+CL+Mus4Tb/Y+2nPtHS4HOgl9JB0iBwBVkl+UXrIux+rm3+UHWkk6EVKzU4BpbR fQPg== 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=N5h8iJFDGkxJdkgiGqbdsmMoL3tboI8yMOGmAf/rJKg=; b=HRGRwZWaQoir9F9kTLnrgh1UNeQGWb42pTSsfHJQogkCvxzuPSahNDgpF6Xk9KYJ8Z eYIP/RqkDs0wVcCrUxbeLYXW/iOCb5mQLVv0D009LUiaZV0J5t+iuH0Q1fcDkL/Og7td 4qHruuyvAuFLrSXd/oI8n9zEddshJd+Qq840sQtPoJOjCx/Dqna0LkRokFkZRk/Fmvp6 ykJryRnXD0yM7h8SrLbe6Gdpdw4u4hAM9Ztq8CYBs0TYGDPS36vZrOta/+yUFgAUva69 6XCF3EbOtaAzhsmWcwdZ9JlE0Ieh6KJQSqjR691D75XEZDBAEy91AIL7nQo3LnvTsUx/ P+KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="bDw0HV/A"; 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 u21si5467533pgn.290.2019.08.24.18.33.15; Sat, 24 Aug 2019 18:33:41 -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="bDw0HV/A"; 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 S1728332AbfHYBb7 (ORCPT + 99 others); Sat, 24 Aug 2019 21:31:59 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:29100 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbfHYBb7 (ORCPT ); Sat, 24 Aug 2019 21:31:59 -0400 Received: from grover.flets-west.jp (softbank126125143222.bbtec.net [126.125.143.222]) (authenticated) by conuserg-08.nifty.com with ESMTP id x7P1Vg4h010677; Sun, 25 Aug 2019 10:31:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com x7P1Vg4h010677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566696702; bh=N5h8iJFDGkxJdkgiGqbdsmMoL3tboI8yMOGmAf/rJKg=; h=From:To:Cc:Subject:Date:From; b=bDw0HV/AHW/tpP6D4okWfnM7Gnyi9KYS7BS99bdFaEHwJaYm7fD/ArCPxLHdqJz2w CwpD8jYn4l44eyNLGieX59WDsvCNBPld9j9PQ1BrysftLmDjSY1r26dLihH3B7fZgl /7CjSABcBafFHokIiiQ2PjLls50tEfs57W34icqfZU42sze6MrzLDbQqauPoxRN1Gf wE90Gnbwn42gpodNAvmq7QEA1DoKazFRb3a1KiLWGUyaPGxZzDugczwJ/51IuBWNG0 nIGhzKujRZzY68I93tLkWEr8qsRLrMO4+B/paNYdTUHU70n9ZGGrfHXPkN1S+40rtY NpGeki2m2ajDg== X-Nifty-SrcIP: [126.125.143.222] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: clean up subdir-ymn calculation in Makefile.clean Date: Sun, 25 Aug 2019 10:31:39 +0900 Message-Id: <20190825013139.12913-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 Remove some variables. Signed-off-by: Masahiro Yamada --- scripts/Makefile.clean | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index fc38a34128d4..e367eb95c5c0 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -17,17 +17,8 @@ include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-di # Figure out what we need to build from the various variables # ========================================================================== -__subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) -subdir-y += $(__subdir-y) -__subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m))) -subdir-m += $(__subdir-m) -__subdir- := $(patsubst %/,%,$(filter %/, $(obj-))) -subdir- += $(__subdir-) - -# Subdirectories we need to descend into - -subdir-ym := $(sort $(subdir-y) $(subdir-m)) -subdir-ymn := $(sort $(subdir-ym) $(subdir-)) +subdir-ymn := $(sort $(subdir-y) $(subdir-m) $(subdir-) \ + $(patsubst %/,%, $(filter %/, $(obj-y) $(obj-m) $(obj-)))) # Add subdir path -- 2.17.1