Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2575370ybe; Thu, 12 Sep 2019 11:30:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqCJuhcIuBnwc7ck82g0FqWjjwx2Hng7GcDoEHdATxcgBuUcnM9azt/ovuXLF4pasenZI2 X-Received: by 2002:a17:906:5299:: with SMTP id c25mr19405483ejm.64.1568313059543; Thu, 12 Sep 2019 11:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568313059; cv=none; d=google.com; s=arc-20160816; b=qzTLu5aTSvDOlwMWLDrTDhZt4OCW2cJv5q/vfzCAkSXS0MIMOyF9gUSkDZCjSgJuGP i8+ii8cfUc60/Hsp9L1N7ifuqdPrK0KrNXAkf4kZUAbk+X3j14CfnSAtlxEmD0CYCwmY bfeQjhjM9/iJatLlJ0Ldj7p73y4oLImb/AwFzH8U5jJv9hRq8wbSE73T9jv69SsqEzbz Tr9R/OJ5rHkKnoU/Cmo8cBRO/NrwKB2aedvbDwuKswQS2uKJ0XoT87FxMTD3OPcUivRD 2NInExc63KiqhQV5P5hfl7jsTjpTEHfw8NcKhXICbGO8YgcTVRe6ABdMMcYFVhxTS707 5soQ== 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=6plTsXg4MpJ2Euqlmtft3yphP/1mbsQxTTVwZlEiA3Y=; b=TneY58OTpUm/ms08T2e4zWYlXPreqtAZUSUYBTU94Oed8DBx1RmDkEEmffMzN33juN 2IRpHerw+yq95RerNTBxZtrh7sOZfWHhKEw+22Nh4/BrPOT4U2teJQy7/buEtMBhNYAh Hji3Mf2aEHLrRQlA8hzrBrJJbI9/0FcjABAt3ECbrosfWdlxsDlyEa+Tph2q3X1K8ktU EsRU8hdj6QA+4U7NMGzpNg8bJG9oNjIrJkBeaU0gzZwJJmLzri8zdCHbwurG/KCsH17g 9GgUkBByRh2iHdKbsnkAofNBKz1b7KxBffjQ+Aid9d8GLsU2EtPJ/uhD7bMofhOk/Inl o4Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=eoiAXkw0; 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 w10si2811917edu.269.2019.09.12.11.30.17; Thu, 12 Sep 2019 11:30:59 -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=@nifty.com header.s=dec2015msa header.b=eoiAXkw0; 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 S1732971AbfILQXJ (ORCPT + 99 others); Thu, 12 Sep 2019 12:23:09 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:42382 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730119AbfILQXJ (ORCPT ); Thu, 12 Sep 2019 12:23:09 -0400 Received: from grover.flets-west.jp (softbank126125143222.bbtec.net [126.125.143.222]) (authenticated) by conuserg-07.nifty.com with ESMTP id x8CGMu1c021030; Fri, 13 Sep 2019 01:22:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x8CGMu1c021030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568305378; bh=6plTsXg4MpJ2Euqlmtft3yphP/1mbsQxTTVwZlEiA3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eoiAXkw0USezn6DqskoWpLU4Wu99H8g65BJXxSJgJcWFhRzBxcYfOtN8UiNkgdSEx rKHMksnmO0e86RdXD/wNp4bfcStkLx805BLRHtF3cC7oup7a/a83uh1OS9n+4UCI2I 7P6OoI5nOsgNgJPLYnIETDEAVY1LqUI/vGA/IW9UHgR0+BqyJipu2Q8IFD3aKK6wUr qYEw/jkRnuhvrCwW1+9uU/r6pKwFjQg/bOWQAMM9blWIgg4cJy791/jtci8yQTcpTl akRCKJLNkpw1qBXEwF5tff/buTxKBfOJDfKgT5wyf2X+xSZuX8kgTAASk522MazwLC vW/GqDUCxrJEQ== X-Nifty-SrcIP: [126.125.143.222] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] kbuild: clear KBUILD_MODULES in top Makefile if CONFIG_MODULES=n Date: Fri, 13 Sep 2019 01:22:53 +0900 Message-Id: <20190912162254.9603-3-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912162254.9603-1-yamada.masahiro@socionext.com> References: <20190912162254.9603-1-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 try to build any module-related artifacts when CONFIG_MODULES is disabled. Signed-off-by: Masahiro Yamada --- Changes in v2: - New patch Makefile | 4 ++++ scripts/Makefile.build | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index adc0cabe2382..0ecc62dbe234 100644 --- a/Makefile +++ b/Makefile @@ -1797,6 +1797,10 @@ single-build = $(if $(filter-out $@/, $(single-no-ko)),1) endif +ifndef CONFIG_MODULES +KBUILD_MODULES := +endif + # FIXME Should go into a make.lib or something # =========================================================================== diff --git a/scripts/Makefile.build b/scripts/Makefile.build index fb29c898604a..aab9a14fa78d 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -76,7 +76,7 @@ else ifneq ($(real-obj-y),) builtin-target := __warn-orphan-obj-y endif -ifeq ($(CONFIG_MODULES)$(need-modorder),y1) +ifdef need-modorder modorder-target := $(obj)/modules.order endif -- 2.17.1