From patchwork Thu Feb 14 03:05:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158293 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp834874jaa; Wed, 13 Feb 2019 19:06:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IaKpnHBJbCajER6HBfGJsb35Ze0naEtYxElOtGH5UuYsdBJiCAqmE0oAyyojIw1gmqq2bkl X-Received: by 2002:aa7:8286:: with SMTP id s6mr1634533pfm.63.1550113579409; Wed, 13 Feb 2019 19:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550113579; cv=none; d=google.com; s=arc-20160816; b=U2g93JAaFWyWNtgNOYEmofertUb/KJKh7Z41jfqG1RnrvGiqFJkcJaEJyMspUD/NdB AHJDHwzaDp2b+aWVsf7iWhdNvuhkg6gs1/beQO80JHuEKxEzbbpROtmp2mietwmRRnpS J2MVFrgWQxX9TVn2RhL1j+RSW8UkEs5O2n52xxGv7LMRVIvgMQx68JRTYWMc2Lx8BErW Bkj4imWehNkJnNBzJt14rjdVzwTbtj084bplCPRtia+Y1qN8AGAwI111K/fIWX1TfXWZ PFv2ajzzIa0kZm9/lwXsYAGHwI8GycK8j6EtfMOlm3je+irJR1ulMZ59ezqb6KDRlAtl 9ohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=z7QbcsEL2gebJ2pwu1NQAHednh5Ku/Vt6/MmBfIu8UY=; b=Gisk/YVYwxDa1UkkQDYUGRDPNd7j31lfnmct1Qjr5Kbb+3BlPkVMZzU0BNMon2Gyym nSEDN9Y+6+9oxRnQHloomGYLMj3dgWUZLjPo+VYAwR/Rfxsc86o41cNzjOYRisQjPSHr OhmgeVs/rS/m/aA3yhLUFLcdLUgn5W+1/1E00BlXgHgkgEzsg6NvOa/cL/xlIXrj0ReN nKbK1jrA+Iuw2d/6cCH9TAUDLlN8+qqLDlresbbHHten91hR5k23xcjlOERrfZc436Cj 9LzpfGmcR0Ieq837jLXC7pEQnUhm1nvlSpy0Cn1zdomOzMxft3PSh+ptG3Xjst+uOsed eIwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yCK6NlQq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d38si1187893pla.207.2019.02.13.19.06.19; Wed, 13 Feb 2019 19:06:19 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=yCK6NlQq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394329AbfBNDGF (ORCPT + 31 others); Wed, 13 Feb 2019 22:06:05 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:64388 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388324AbfBNDGF (ORCPT ); Wed, 13 Feb 2019 22:06:05 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x1E35Pg3020814; Thu, 14 Feb 2019 12:05:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x1E35Pg3020814 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550113526; bh=z7QbcsEL2gebJ2pwu1NQAHednh5Ku/Vt6/MmBfIu8UY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yCK6NlQq6emtPRc5IEqJokU4opyLttoMvwtjnKyj1aW62BKX7SUzwb0Z5eHz2syxN zJcnKWII+vT+cGsJwxmaPRr8FQMjcmj+k3RBvAZbFqcuzECTumdAVH8WIooepZyOst M2nRsOUWRKjU5kjCUqfGIWAUyo0duBrmXFr4cLIakX4a3x0XmKBRCtNoS3ihhJB2va RegSQBaiSUQOe2KSK6+HsA99W7BI5e2l0DQ3cDyCT6/pyN1ZVZNlZ9xJjcQYkb1SAW wkFYrdyAd/I/N3KN+vcRyFda95z8UgIfpMXde2cvSLHxxopfSxqEb1iHFbBr7fm25m pdbmM1KAcgAsA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 2/8] kbuild: generate modules.order only when CONFIG_MODULES=y Date: Thu, 14 Feb 2019 12:05:15 +0900 Message-Id: <1550113521-23577-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550113521-23577-1-git-send-email-yamada.masahiro@socionext.com> References: <1550113521-23577-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not generate pointless modules.order when the module support is disabled. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 99be01c..89debbe 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -63,7 +63,9 @@ ifneq ($(strip $(real-obj-y) $(need-builtin)),) builtin-target := $(obj)/built-in.a endif +ifdef CONFIG_MODULES modorder-target := $(obj)/modules.order +endif # We keep a list of all modules in $(MODVERDIR)