public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Kinney, Michael D" <michael.d.kinney@intel.com>
To: David F. <df7729@gmail.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>
Subject: Re: Constructor Order
Date: Fri, 23 Jun 2017 02:59:24 +0000	[thread overview]
Message-ID: <E92EE9817A31E24EB0585FDF735412F5A7D38741@ORSMSX113.amr.corp.intel.com> (raw)
In-Reply-To: <CAGRSmLuWB7ULYmW5F1Y2ma0qOsdcKteBT4Lq15WJWz+PMw+Z7g@mail.gmail.com>

David,

Constructor order is determined by the build tool through evaluation of each of the library instance dependencies as declared in the [LibraryClasses] section of the INF.  This is a recursive algorithm to collect all the library instances because a module uses libs and each lib can use additional libs.

This process is described in the EDK II Build Specification in Section 8.2.5 Post processing.

https://edk2-docs.gitbooks.io/edk-ii-build-specification/content/8_pre-build_autogen_stage/82_auto-generation_process.html#82-auto-generation-process

If you want a different order, then likely one or more of the lib instances being linked to a module does not have correct information about its lib dependencies in the [LibraryClasses] section of the INF.  If the dependencies are specified correctly, then the order generated by the build tool should be a valid order based on dependencies.  There are some cases where there could be ties, such that the order could be different and still correct, but there is no way to influence the order between ties.

Mike

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of David F.
Sent: Thursday, June 22, 2017 3:05 PM
To: edk2-devel@lists.01.org
Subject: [edk2] Constructor Order

So I'm back from years ago trying to work out the constructor order.
It doesn't seem any change I make causes autogen.c to change the order to what I want to happen.  At least if someone could indicate which file I need to use to check the order, that would help.  I presume it's the .inf file of items being built in the [libraryclasses] section ?

I don't think [Packages] should matter?

TIA!!
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


  reply	other threads:[~2017-06-23  2:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-22 22:05 Constructor Order David F.
2017-06-23  2:59 ` Kinney, Michael D [this message]
2017-06-24 20:25   ` Ard Biesheuvel

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=E92EE9817A31E24EB0585FDF735412F5A7D38741@ORSMSX113.amr.corp.intel.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