public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Pull in pre-built library during edk2 build?
@ 2017-04-06 18:07 Peter Hornyack
  2017-04-06 18:57 ` Andrew Fish
  2017-04-06 22:46 ` Laszlo Ersek
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Hornyack @ 2017-04-06 18:07 UTC (permalink / raw)
  To: edk2-devel

I'd like to make an adjustment to the edk2 build (locally, not for
upstream) and I'm hoping someone can offer some guidance.

My goal is to pre-build an edk2 library in a separate build process,
then pull that library into the full build later on. Specifically I'm
building my firmware image using OvmfPkgX64.dsc, but I want to build
OpensslLib (CryptoPkg/Library/OpensslLib/OpensslLib.inf) in advance,
then pull the resulting lib into the full build later. How can I
achieve this?

In my build output I can see that when OpensslLib.inf is built, all of
the openssl .c files are compiled into .obj files, then an ar command
wraps those up into OpensslLib.lib. I want to pull those steps out and
pre-build OpensslLib.lib, but I've been unable to find where/how the
edk2 build grabs that .lib file and turns it into the final firmware
image. I've reviewed the edk2 build documentation but still can't
figure this out. Can anyone point me to the right place in the edk2
build files where I can make this happen? Or perhaps is there an
example of this already in the edk2 build that I can imitate?

Thanks,
Peter


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-07  3:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-06 18:07 Pull in pre-built library during edk2 build? Peter Hornyack
2017-04-06 18:57 ` Andrew Fish
2017-04-06 19:42   ` Michael Zimmermann
2017-04-06 22:46 ` Laszlo Ersek
2017-04-06 23:16   ` Laszlo Ersek
2017-04-07  3:30     ` Peter Hornyack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox