Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1796821ybg; Sat, 19 Oct 2019 02:42:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3VlxIpK7wewMQ1ORHO0/fH3LcKKbMKzn+H98JIEHwmPSrnAnO40ILaxvqij+rJeSoT++/ X-Received: by 2002:a05:6402:12d4:: with SMTP id k20mr14396341edx.241.1571478155896; Sat, 19 Oct 2019 02:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571478155; cv=none; d=google.com; s=arc-20160816; b=vnATi1dMhdK1BquvrL7zfrx1WweUkQRH3O2u74sguVx5FF3piEFqdyyXOEZ+CV8eiD nFBq8JJliFaM9l4UkYFx+/kXl/9aigQVQopwt05e1ggNPJjw6rXyX/D7Bq//FMsntPY3 MRmLSNn+lR20xlxLyUcK2zOcXHw3VkJvI5qPA3U/s2/FlJv4GmNTlfJmha1shkxAOmZs kNWJmmC7xMxN4ruPqWh/xod0AT62O05np52clG/NmpMAlRKx8f69Kzr2JrjAic4MdsfC LNotzLTEpPeJfeE3THWGwxD/URmKGJVloMCCfms2sYH72I8tq9WRirbdtYyeldfoMMq1 /z1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0N4YBwJhIvlbNTF//u3ryuk+605x5sAisf/wZVUhSn4=; b=kUFY9mF2Uiamqj0blahRlvwX1Ofi2nqj3vttCIuTjFw+n30raSy/srj9hn/DPOeXO7 mdMEIIdcWlPGxAg59AwOjIOLfvGAx2jt+CwNWxNvZd+hWjiYuVi2/JrGXB4P8a6QPyf3 Z+1l2KiN2tGs2g8hY+IAwU5DSvQV4SnmnqG3oUbhtdhe29wXM9zs1Z5iBuyQkl5+vbsw XGKmXCEhidm/XZSOfWEBcAKkhLShR0MGaZ7c+RYGIyLD9YmMcA5bwpc/+0PAM83UHcaN +uC+O2ENpYF5w2eNWnGVbOSC/VThk2HwJzUwhq2/thatuQJAzZdTTcHXCh45Ljo5Rxqq /y7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="i/rh2mtD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si4968618ejg.248.2019.10.19.02.42.12; Sat, 19 Oct 2019 02:42:35 -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=@kernel.org header.s=default header.b="i/rh2mtD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404163AbfJRWS0 (ORCPT + 99 others); Fri, 18 Oct 2019 18:18:26 -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