From patchwork Tue Jul 7 16:35:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11649263 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F9BD14B7 for ; Tue, 7 Jul 2020 16:35:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 574042064C for ; Tue, 7 Jul 2020 16:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594139759; bh=/oGk6s3G9VWmHSKu8MF25HCGJzwlM7IGAstZoDj63Tw=; h=From:To:Cc:Subject:Date:List-ID:From; b=MFQQokI2+1oy/oLHFdVB7KLjhk9+oK3OJ/E447j+utJKpQntFoIrx8s1DRUCtbWm2 +PmKDaBpQyCXRGUhqXYi5vaRr5r4jaqES72wlQS0Ul3WT8iSLMOnDK5OrP3kGkPOWu FtqDBELG7i0LnR0FASOKhGwcn0jANKsRp98fW3iY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727777AbgGGQf6 (ORCPT ); Tue, 7 Jul 2020 12:35:58 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:41914 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726911AbgGGQf6 (ORCPT ); Tue, 7 Jul 2020 12:35:58 -0400 Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-08.nifty.com with ESMTP id 067GZBhP024676; Wed, 8 Jul 2020 01:35:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 067GZBhP024676 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1594139711; bh=Z7GDlYHkzBXkrrr5njoj7vSAxyMLh9VxFTcJmiipgQc=; h=From:To:Cc:Subject:Date:From; b=yrjdBlh2uYYEYpsif49lXGJrty+acA7R8ghKFFso/LrhlVuarwE+Q4M+6K/J6b/pX QicqdzQ7Zr62FaCY6Stj1JBUJduWeThE0jBGdOzyOoV9Tl/ZZ+Ut9k9Ivv/TsZtMkr KtL/K26dDzLTmAoo3hfBly/N89JBy5uQwiebV1J87QshFMwXA7ifzzo+sT3hOjv3we AGUfZzqL5o2pyAeAk8bVgdM5OxkCcgAh8Km8cRweCymIaA4i5D7/bFOTr6RsHfqk6J VqN7hOl/LjM/iHMFApoiTBVorsUJlCQIBB+K3+bE/ydMwyyoe16ak3pS/XDSuuoSLI ISQPLMDdGv2eA== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: =?unknown-8bit?q?Bj=8F=A9=CCrn_Mork__=3Cbjorn=40mork=2Eno=3E=2C_Masahiro?= =?unknown-8bit?q?_Yamada_=3Cmasahiroy=40kernel=2Eorg=3E=2C_Michal_Marek_=3C?= =?unknown-8bit?q?michal=2Elkml=40markovi=2Enet=3E=2C_linux-kernel=40vger=2E?= =?unknown-8bit?q?kernel=2Eorg?= Subject: [PATCH] kbuild: fix single target builds for external modules Date: Wed, 8 Jul 2020 01:35:08 +0900 Message-Id: <20200707163508.1191105-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Commit f566e1fbadb6 ("kbuild: make multiple directory targets work") broke single target builds for external modules. Fix this. Fixes: f566e1fbadb6 ("kbuild: make multiple directory targets work") Reported-by: Bjørn Mork Signed-off-by: Masahiro Yamada --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fe0164a654c7..676f1cfb1d56 100644 --- a/Makefile +++ b/Makefile @@ -1754,7 +1754,7 @@ PHONY += descend $(build-dirs) descend: $(build-dirs) $(build-dirs): prepare $(Q)$(MAKE) $(build)=$@ \ - single-build=$(if $(filter-out $@/, $(filter $@/%, $(single-no-ko))),1) \ + single-build=$(if $(filter-out $@/, $(filter $@/%, $(KBUILD_SINGLE_TARGETS))),1) \ need-builtin=1 need-modorder=1 clean-dirs := $(addprefix _clean_, $(clean-dirs))