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,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 CC0D7CA9EA0 for ; Fri, 18 Oct 2019 22:18:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9504121852 for ; Fri, 18 Oct 2019 22:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571437109; bh=4yf0xY+siayprstSH7pJ9lhW841VNU30MNrW/1kjx+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=c2rQu5SXHzzyPlQjtlbuUXUpLXrqdzc/ieyC3QrvmOltKkic/gkyP3oIy/AEviL0V 5shmLIvblVlMAwaMkCVn85yBo8A7JR8p+6ulB7AAbZIXXof+I5JHpxFtFWUN/4IfvF UglXpITt6mlIF9IQhfM/cLGWNvBvpUopRpw04Jkc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404180AbfJRWS2 (ORCPT ); Fri, 18 Oct 2019 18:18:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732709AbfJRWHT (ORCPT ); Fri, 18 Oct 2019 18:07:19 -0400 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 7C1572245A; Fri, 18 Oct 2019 22:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571436439; bh=4yf0xY+siayprstSH7pJ9lhW841VNU30MNrW/1kjx+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i/rh2mtDREerSrS3peKVEZlluwtER3OUv/EIAySS5oGZfOz1RIDN/wi1Gvlufo859 wPl0aRVmqUx5xaatUdJpePAjalQOtTzVIzNeSXTDWAR3ga2srEQXlwbB3hwwfGX+ts nBIDgKvXujbX0HeGatNKueBptBh4fclwo7z7TEVU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Matthias Maennich , Jessica Yu , Sasha Levin , linux-kbuild@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 077/100] kbuild: fix build error of 'make nsdeps' in clean tree Date: Fri, 18 Oct 2019 18:05:02 -0400 Message-Id: <20191018220525.9042-77-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191018220525.9042-1-sashal@kernel.org> References: <20191018220525.9042-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 d85103ac78a6d8573b21348b36f4cca2e1839a31 ] Running 'make nsdeps' in a clean source tree fails as follows: $ make -s clean; make -s defconfig; make nsdeps [ snip ] awk: fatal: cannot open file `init/modules.order' for reading (No such file or directory) make: *** [Makefile;1307: modules.order] Error 2 make: *** Deleting file 'modules.order' make: *** Waiting for unfinished jobs.... The cause of the error is 'make nsdeps' does not build modules at all. Set KBUILD_MODULES to fix it. Reviewed-by: Matthias Maennich Signed-off-by: Masahiro Yamada Signed-off-by: Jessica Yu Signed-off-by: Sasha Levin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d29c7370b464..80f169534c4a7 100644 --- a/Makefile +++ b/Makefile @@ -566,7 +566,7 @@ endif # in addition to whatever we do anyway. # Just "make" or "make all" shall build modules as well -ifneq ($(filter all _all modules,$(MAKECMDGOALS)),) +ifneq ($(filter all _all modules nsdeps,$(MAKECMDGOALS)),) KBUILD_MODULES := 1 endif -- 2.20.1