From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: devel@edk2.groups.io, bob.c.feng@intel.com
Cc: Liming Gao <liming.gao@intel.com>
Subject: Re: [edk2-devel] [Patch] BaseTools: Sort file list in Makefile
Date: Wed, 24 Jul 2019 14:22:22 +0200 [thread overview]
Message-ID: <3418cc0d-131b-037a-b706-3aa8f87aed8e@redhat.com> (raw)
In-Reply-To: <20190718073418.11832-1-bob.c.feng@intel.com>
On 7/18/19 9:34 AM, Bob Feng wrote:
> This patch is going to sort the file list in generated
> Makefile. This change make the autogen makefile easy to
> compare.
Good idea.
>
> Cc: Liming Gao <liming.gao@intel.com>
> Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
> ---
> BaseTools/Source/Python/AutoGen/GenMake.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py
> index 212ca0fa7f..031c0ae370 100644
> --- a/BaseTools/Source/Python/AutoGen/GenMake.py
> +++ b/BaseTools/Source/Python/AutoGen/GenMake.py
> @@ -1024,11 +1024,12 @@ cleanlib:
> self.FileListMacros[T.FileListMacro].append(NewFile)
> elif T.GenFileListMacro:
> self.FileListMacros[T.FileListMacro].append(NewFile)
> else:
> Deps.append(NewFile)
> -
> + for key in self.FileListMacros:
> + self.FileListMacros[key].sort()
> # Use file list macro as dependency
> if T.GenFileListMacro:
> Deps.append("$(%s)" % T.FileListMacro)
> if Type in [TAB_OBJECT_FILE, TAB_STATIC_LIBRARY]:
> Deps.append("$(%s)" % T.ListFileMacro)
>
prev parent reply other threads:[~2019-07-24 12:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 7:34 [Patch] BaseTools: Sort file list in Makefile Bob Feng
2019-07-23 12:31 ` [edk2-devel] " Liming Gao
2019-07-24 12:22 ` Philippe Mathieu-Daudé [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3418cc0d-131b-037a-b706-3aa8f87aed8e@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox