From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 862CDC2BA83 for ; Fri, 14 Feb 2020 16:01:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5435E206CC for ; Fri, 14 Feb 2020 16:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581696079; bh=YauOEueJuBf1r8J2JsYeH3qisH8WDR7gx8JHrcRp+/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=eyG2tpTeGOYM83XEvsIkFD79o6n7VcXoXjFQgczn2USiDm3QsAMq+BJe2YPY+5x7g 4oFSLNYs22Jin+eL7HM/NadAWDpOljOJRxkIOaJ5u/b9gQ5M1sHJB8QHMV8Afil066 ox0dXLqNdE6mWy31KzGHiAvropYozVyYzeyXFoYE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389001AbgBNQBR (ORCPT ); Fri, 14 Feb 2020 11:01:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:45766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389118AbgBNQAV (ORCPT ); Fri, 14 Feb 2020 11:00:21 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 301EE24676; Fri, 14 Feb 2020 16:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581696020; bh=YauOEueJuBf1r8J2JsYeH3qisH8WDR7gx8JHrcRp+/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zIwKMPsX8xsEKWnxfE8Cp+qzMvhW3apfoFvdPSJ/RNxyLNJM4+N91uDpiYXM7O+Fg cyJr1Noi9iWKd6ZPKH6LjOhO5vDih6kheDm7HSoe93NoalVpch+QIRr5l1AkupavZl eBGiH4blElA61lXjz79If9KzGRUFerkXr5WvCNWY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Linus Torvalds , Sasha Levin , linux-kbuild@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 536/542] kbuild: make multiple directory targets work Date: Fri, 14 Feb 2020 10:48:48 -0500 Message-Id: <20200214154854.6746-536-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214154854.6746-1-sashal@kernel.org> References: <20200214154854.6746-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit f566e1fbadb686e28f1c307e356114b2865ef588 ] Currently, the single-target build does not work when two or more sub-directories are given: $ make fs/ kernel/ lib/ CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool make[2]: Nothing to be done for 'kernel/'. make[2]: Nothing to be done for 'fs/'. make[2]: Nothing to be done for 'lib/'. Make it work properly. Reported-by: Linus Torvalds Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fdaa1e262320d..b65e891c4deae 100644 --- a/Makefile +++ b/Makefile @@ -1691,7 +1691,7 @@ PHONY += descend $(build-dirs) descend: $(build-dirs) $(build-dirs): prepare $(Q)$(MAKE) $(build)=$@ \ - single-build=$(if $(filter-out $@/, $(single-no-ko)),1) \ + single-build=$(if $(filter-out $@/, $(filter $@/%, $(single-no-ko))),1) \ need-builtin=1 need-modorder=1 clean-dirs := $(addprefix _clean_, $(clean-dirs)) -- 2.20.1