Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1877495ybe; Thu, 12 Sep 2019 00:36:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt9Fp3SPr2QtWdBA/Vt9OS6Ibz++TJ0MVEq6JKZMYQMhgZJu7caGA38nKM/ve8cD1TpMN1 X-Received: by 2002:aa7:c50e:: with SMTP id o14mr40361488edq.78.1568273761172; Thu, 12 Sep 2019 00:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568273761; cv=none; d=google.com; s=arc-20160816; b=jcIgDQ4JXBaJXZ32dxvrIWycxo+kh+cjmF3s9KMdJPQghdf+XT3NG18OrlWPiQF6R0 omd8H6mNmcyntSSSsSiFzRnNOmDHKYkZQCUMj0tuQTs7G1B/Ae/9xrmgiZs65G8CL5Be F/7TnyH9fa74dTRadY5U3i/PGk5ItIuaot5wml+KU6ekG2bjpIsbtfjtJmdCNA1pSJi2 nCLrmuvePEuUTYqxCALwOnt2Uj7C5H+r6AyHrS+NehXvd8zrJMZz/3iP2zF27RmN21jp 5nsZNBybrMrRhDAhHCTLo9nbXT2tpyIQQYONz2VuAd36IZ2b4E2Iu2uYqensfrmIF2tA LqoA== 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=pv44XTP6ZfWgIUysfDsiZqGnj8xj7NDBDRlFeIGA84g=; b=qgSPE5rrRM8pKye9erJzHKeuUg8wCiSLX4G2+xmyEDLYUSCm3HMx4h6YNytGP8DC3N YvwTFZH0n0/Ii6NvVMTmkdMa6gFve3+8FfK5yrNUX0GYvP+AKSFDlcfwD+XuQBuG5ffb tP3jSEEk9eLLnrxU1Ynta/LueAkw6gv3esBQ0Yid6lwyAgvc4BXQW8O2A5S7T2Dj5vbd A5sHwhOnPngpaVjsjQNsTWd31Y0BrMnN0otMllBVJHSmINzeeN/twPU+Gai4k3M5PSx6 KcuyA8P07lyg0eAABfNeFcHzsKf0A1iR0co0+bFUNqBXnQrKRAq2Q5h/eVOJBJXeOfBN 3HBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=I+g5chcL; 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 f21si15633854edb.379.2019.09.12.00.35.37; Thu, 12 Sep 2019 00:36:01 -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=I+g5chcL; 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 S1729753AbfILHds (ORCPT + 99 others); Thu, 12 Sep 2019 03:33:48 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:43163 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfILHdr (ORCPT ); Thu, 12 Sep 2019 03:33:47 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x8C7XbgA018895; Thu, 12 Sep 2019 16:33:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x8C7XbgA018895 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568273620; bh=pv44XTP6ZfWgIUysfDsiZqGnj8xj7NDBDRlFeIGA84g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I+g5chcLlIDpARKarWd1h8kPMPDRdX2ak4F2bhQSgK5RIhxJYxvrrNcqOwtELDXQ+ r7dx6z4/ump7yNMjRmBHVR8uucYqp/65wbDtjAslwvDglc4ErPRFF0VrlQg4PHBZg5 yzQjalhq6rNYKH6Dqzxx32lHsdWVoAMNGc3Cr7bovxP94tnj8qsfzMV6o2HWQVD5kd eFnUcKgs5jqcLg0voqGtoKtX26PTl5eYWMrdNIKXzvlMxViUqRzqZ/qzJyENEKOEM/ 4DgeqAbsf7iew2We9AULrjjgdxWuZEbBi4oNo2QuMz2XifMbDHX9UWNw2RGOHuVUKG 5/+TDvqKvXTUw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] kbuild: change need-modorder implementation slightly Date: Thu, 12 Sep 2019 16:33:35 +0900 Message-Id: <20190912073336.7036-3-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912073336.7036-1-yamada.masahiro@socionext.com> References: <20190912073336.7036-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Align with the need-builtin implementation. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 2 +- scripts/Makefile.lib | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d30b04707fec..91617b9d7a34 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -528,7 +528,7 @@ $(subdir-ym): $(Q)$(MAKE) $(build)=$@ \ $(if $(filter $@/, $(KBUILD_SINGLE_TARGETS)),single-build=) \ need-builtin=$(if $(filter $@/built-in.a, $(subdir-obj-y)),1) \ - need-modorder=$(if $(need-modorder),$(if $(filter $@/modules.order, $(modorder)),1)) + need-modorder=$(if $(filter $@/modules.order, $(modorder)),1) # Add FORCE to the prequisites of a target to force it to be always rebuilt. # --------------------------------------------------------------------------- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 07095d3789a1..034e92ea72c6 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -23,7 +23,9 @@ lib-y := $(filter-out $(obj-y), $(sort $(lib-y) $(lib-m))) # Determine modorder. # Unfortunately, we don't have information about ordering between -y # and -m subdirs. Just put -y's first. +ifdef need-modorder modorder := $(patsubst %/,%/modules.order, $(filter %/, $(obj-y)) $(obj-m:.o=.ko)) +endif # Handle objects in subdirs # --------------------------------------------------------------------------- -- 2.17.1