From patchwork Sun Aug 25 01:31:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 172150 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2580041ily; Sat, 24 Aug 2019 18:32:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPFXpA+hdU2MP/LooI8iFmtO8jGIYv3SJA0FRulQBmG+irwSggDDureMOnwmhOzhKxwh1Y X-Received: by 2002:a63:4042:: with SMTP id n63mr9980996pga.75.1566696722923; Sat, 24 Aug 2019 18:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566696722; cv=none; d=google.com; s=arc-20160816; b=bkM2KtnTOimU7D4x/DLc0P0hnkrUHdfMmJyD7ivf8f9l5hqvgSF1QAymr2xoJdFuq7 xQTjBvUF0bce+HKX2A1Fm0wmllrb3Ai0tf4O4Hipd6V3XrRcYVaW7MA+6CVrjGQlcgc/ 3zx8/Em6vmDMW4gTOCSr5XKE9ZfkgGiotc1tnyKzdAgfsAnTQ7QZk2TIKr6yQkAl5h3n 7TYHtB+qGTEAFJNfZqpc9aApnEPAUy7/X2k0HNPuOGeIRfeKXstKZHCMqsZyAytKI5+z qYnNcSAR7TyLdSc5FMCrN28drq3c26doK1FBfClF2nG4j75b9h/8XeahPBSeztTHrzbx AVRA== 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 69si5401414pge.101.2019.08.24.18.32.02; Sat, 24 Aug 2019 18:32:02 -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 S1728343AbfHYBb7 (ORCPT + 28 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(-) -- 2.17.1 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