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: 10811665 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48814746 for ; Thu, 14 Feb 2019 03:06:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3575E2C3E8 for ; Thu, 14 Feb 2019 03:06:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 298D62D813; Thu, 14 Feb 2019 03:06:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB25B2C3E8 for ; Thu, 14 Feb 2019 03:06:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394280AbfBNDGF (ORCPT ); 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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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)