From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-x234.google.com (mail-yw0-x234.google.com [IPv6:2607:f8b0:4002:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6152021942330 for ; Thu, 6 Apr 2017 11:08:03 -0700 (PDT) Received: by mail-yw0-x234.google.com with SMTP id p77so24060721ywg.1 for ; Thu, 06 Apr 2017 11:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=qGm04MlO6TWmpuXnXvk8xCazO3B+AbZXG6dgNXq1I7c=; b=mm83kADI+NE6soD2AZg+zkunAXc3s5jfvWapf/7FRkFc0Z5UHMu3FpjEn1FGZstkj+ CimAMbqIOaQfgSaZDTs4kXMqEtizvkr1LKtmuzg3Ub9i0Gn6pMU6gHH2WjCHZL6Nkgmc XQzWJBxiMAXoZacK/fGNpYpoG99DimUT0TEsTaE0E278TrTMFusRcstJpK/MMt9RUavt V05XLB1BbBpSyb4kY1KFz5qZ9rEn67Qfahkv+fg1NTQVbbYIlaD+sEnv8NRXLh7XXSmu pRzGOiVWKb1e2LwRzG5eUq4oHCaEnogoJEibyphyEYMgaV11PDvqwdEIDTGSMstRclnI LNIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qGm04MlO6TWmpuXnXvk8xCazO3B+AbZXG6dgNXq1I7c=; b=PZyxZxchuzxjn+cGvkpDRF0Ld5bqBE4QLRnJuulOTV13GlvTlVABdPuRjrLeBfiBGf sjek6Ck5fhllYlPJE6KTRHey0tRdwLYzvNsV9uHjg3tO8YIqvF2Bq+NrkAi1UU53PQKy ld9m0XBldQEt9ILMlIEc03HuVweYK9S2u0ce3u0C6RbrHkhCj7RkAYLdwXbQojnG4JXo EjZ2QBBLguG1vJEqWAwOW9JFHuhRjmIX18YHv+2GTlP0sH8oC2PIYwKAo5onGdtSMV4D mTKXFkILa9JXk8BB5wYhXpcU8zPQOVZdmquqlaQUVj/qn3Usmvnx3sXgnbzwyI4n5j1O DZ4w== X-Gm-Message-State: AFeK/H3j6p6rvSc/HrhgHoCyo0Lgo3Oqd3ZY4Y1e667PC3mF/XFY+0ZEZLaVK6JobsGNWB7014GTGeyokKH8Jfz4 X-Received: by 10.13.245.129 with SMTP id e123mr24037248ywf.159.1491502082172; Thu, 06 Apr 2017 11:08:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.50.1 with HTTP; Thu, 6 Apr 2017 11:07:41 -0700 (PDT) From: Peter Hornyack Date: Thu, 6 Apr 2017 11:07:41 -0700 Message-ID: To: edk2-devel@lists.01.org Subject: Pull in pre-built library during edk2 build? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 18:08:03 -0000 Content-Type: text/plain; charset=UTF-8 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