From patchwork Sat Aug 10 15:52:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 171021 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp696094ily; Sat, 10 Aug 2019 08:54:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3C9xffUWeXtVne5LSjLXIeskWV9apKPzMb0B36ufGHUwmQCb0VNSPq4QepHvoLuy9WV4D X-Received: by 2002:a17:90a:1d8:: with SMTP id 24mr15414136pjd.70.1565452465432; Sat, 10 Aug 2019 08:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565452465; cv=none; d=google.com; s=arc-20160816; b=BA6LXmN6J+ef2h+bbq1K0FtP2qApehowefmjM3YgKhe3QGqGDRxEH5R8fUGSNssBmz nL8jPuzEcIkbBJcGSK56lFsK/BVChPn+BJSjWifIWn3/xGziLSO+ZFEdQJPCAe2jV9dl i4isPQx5+VXkh8E9/4XzTOFAYNNDto+1Gk5E0KhDoYHwxmS62Qg1kj3aCzvDkqKf8xlr YCZ70Il/KxA6rVgLwn7xSlX04aS8lD/XnYFst2H7WpUTfIcQ72sYNOjrMAKUXqh71YtJ HHLw9qUjpZSaJvPUAX+5iscwaSOZjJ0IQhtxz4QJRFg7SA2kiIURl0ZQiTJ9k8Y6TZw6 MLzA== 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=Gl/xBYgSeezXWNIArIxqmRVzBsQf63Pbcb4OsjGXeiQ=; b=I2dBVGpbfO/kFCmiJvD0oZ14yheO9uPxkxpK+AmewReWXXHfS+Vqp2AL9uBlSYd2MP 83dWzCUS/+xWPE6CGfu7PLtpqEBHi1Y6blRxVSO7bZnrF+h1eccW4en999IAIVAUs77V JKzLY9Ae7LKnmuWy+aoA7zq9dRX4yZSVKwBgXtLey3ur4LHZy2cjULcXOki8zAoCVrru jFbdlL9doXS/y0kOI3mT1n2VSqEwUsM8A1kM58DlmhDU2J/8t0B6a36Rt2fmoc0Kfiy+ vbchpM5AvpZ3lk82rc69TcmEAFlRtVyAeyzOfTg7mf6OyJW5K5TMoM+0lyJWEFQd1T0z e9Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nwshnoz0; 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 j5si7764377pjf.60.2019.08.10.08.54.25; Sat, 10 Aug 2019 08:54:25 -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=nwshnoz0; 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 S1726321AbfHJPyX (ORCPT + 28 others); Sat, 10 Aug 2019 11:54:23 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:34083 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfHJPyV (ORCPT ); Sat, 10 Aug 2019 11:54:21 -0400 Received: from grover.flets-west.jp (softbank126125143222.bbtec.net [126.125.143.222]) (authenticated) by conuserg-11.nifty.com with ESMTP id x7AFrG8u009713; Sun, 11 Aug 2019 00:53:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x7AFrG8u009713 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1565452399; bh=Gl/xBYgSeezXWNIArIxqmRVzBsQf63Pbcb4OsjGXeiQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwshnoz0X4Lf/tevGRCSEgQ6f5YV070QcFdc3CN1MeE4PWsepzIXzw6dKf1dvdSXp AE+VdOpPkJ/dGaj3O6+Bm3VpfWMRP6LVwPhwtF6lPLbboDGxRBLCM+B8y8XR01W9z2 bICyQF2DlJ5E416wf4akNDfnfe6RghVjcJ33oVqLLBqCAjtfCO0O0H0KxoTn6TMKk7 0LCIduFSShQa767DD9hFDfu55zvG2iYridwbY1dXQyOw4JPPS1iGWyDWsIm+aCdooC 26J/lv5HETB9TB4OvOhUorkpCSiCPSjVqK7dEkuSwjgz80GxB4IwimvHzpvp8yZKV/ mC3AEkyaNhYJA== X-Nifty-SrcIP: [126.125.143.222] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Christoph Hellwig , Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 01/11] kbuild: move the Module.symvers check for external module build Date: Sun, 11 Aug 2019 00:52:57 +0900 Message-Id: <20190810155307.29322-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190810155307.29322-1-yamada.masahiro@socionext.com> References: <20190810155307.29322-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org $(objtree)/Module.symvers is not required for descending into sub-directories. It is needed for the modpost stage. Move the Module.symvers check to the right place. Signed-off-by: Masahiro Yamada --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/Makefile b/Makefile index 02aff718a11d..24c9ed272b5f 100644 --- a/Makefile +++ b/Makefile @@ -1620,10 +1620,10 @@ $(objtree)/Module.symvers: module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD)) PHONY += $(module-dirs) modules -$(module-dirs): prepare $(objtree)/Module.symvers +$(module-dirs): prepare $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@) need-modorder=1 -modules: $(module-dirs) +modules: $(module-dirs) $(objtree)/Module.symvers @$(kecho) ' Building modules, stage 2.'; $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost