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 70E07CA9EA9 for ; Fri, 18 Oct 2019 22:15:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C21A21852 for ; Fri, 18 Oct 2019 22:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571436940; bh=rZRm5J/AmWsVhViflrWRUWX0gjD/Q8+JKfa0BuGOMVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=px+u4ZcHTe74VLeWLsYDRog4fHYL5W2TjtGZ/pX7BjAVaRLirTjsLny6vn4iHkfYF dSwpLXvyxc2oMMNPdgs/IVzTB3XL0Vr3hrpDn+2hBfkDg9F8wLevsSOYufg+emCZ8e Ckn3rnVq1FJHOXVkPtWo/oBNYlY0z903rdL46mII= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392650AbfJRWPi (ORCPT ); Fri, 18 Oct 2019 18:15:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:41556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388321AbfJRWI4 (ORCPT ); Fri, 18 Oct 2019 18:08:56 -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 08C1A22459; Fri, 18 Oct 2019 22:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571436535; bh=rZRm5J/AmWsVhViflrWRUWX0gjD/Q8+JKfa0BuGOMVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Met6TUdT3Rdh462EZ9fLuxnxFLVdVsy1zsw8W6kF3Yqyyv13YwyP91V9F4EoS/oLT jUrljhzD0rt/HoXJF+wzG5LWixOZSTAxDlXb66KDsr2IMUJKc0cUcEZcohdyZv6dSL apsBKoFGbh1tF/CU3LccxuiTQnpXWUVz09VyhAEs= 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.14 39/56] kbuild: fix build error of 'make nsdeps' in clean tree Date: Fri, 18 Oct 2019 18:07:36 -0400 Message-Id: <20191018220753.10002-39-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191018220753.10002-1-sashal@kernel.org> References: <20191018220753.10002-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 93c3467eeb8c9..731a2ce8a749a 100644 --- a/Makefile +++ b/Makefile @@ -554,7 +554,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