> On Apr 14, 2015, at 9:52 PM, partha sarathi swain
> <partha161.sili...@gmail.com> wrote:
>
> Hi Martin,
> Yes. That is straight way to use the library (Having the definition of the
> file "*.c" and one makefile "*.inf" for the Library). But i dont have that,
> all i have is the library object ".lib" and all its header files. As per my
> understanding when you build UEFI it builds all the Pkgs(modules) create
> libraries (.libs) finally links to the final object file. Now i have the
> library ( .lib) and the headers, Is there any way to use that library. and
> build the application which consumes the library.
ParthaS,
I can’t think of a good way to do this. But it is possible to use a
[BuildOptions] section in your driver INF file to pass compiler or linker
flags.
[BuildOptions]
GCC:*_*_*_DLINK_FLAGS = -L<path-to-lib> -l<lib-name>
Thanks,
Andrew Fish
>
> Thanks,
>
> ~ParthaS
>
> ---------- Forwarded message ----------
> From: Olivier Martin <olivier.mar...@arm.com <mailto:olivier.mar...@arm.com>>
> Date: Tue, Apr 14, 2015 at 5:45 PM
> Subject: Re: [edk2] compilation error adding a Library object instead of the
> source code
> To: "edk2-devel@lists.sourceforge.net
> <mailto:edk2-devel@lists.sourceforge.net>" <edk2-devel@lists.sourceforge.net
> <mailto:edk2-devel@lists.sourceforge.net>>
>
>
> You also need to provide an implementation for your ‘DummyLib’ interface.
>
> The implementation is generally/always an EDK2 module with an INF file and
> probably a C-file.
>
> Have a look at the ‘null’ implementation of DebugLib interface in
> \MdePkg\Library\BaseDebugLibNull
>
>
>
> From: partha sarathi swain [mailto:partha161.sili...@gmail.com
> <mailto:partha161.sili...@gmail.com>]
> Sent: 14 April 2015 11:40
> To: edk2-devel@lists.sourceforge.net <mailto:edk2-devel@lists.sourceforge.net>
> Subject: [edk2] compilation error adding a Library object instead of the
> source code
>
>
>
> Hi all,
>
>
>
> i am writing an utility dummyapp.efi (application) which will consume the
> one library dummylib.lib Now ".inf" file has some following code
>
>
>
> ******************************************************
>
> [Defines]
>
> INF_VERSION = 0x00010005
>
> BASE_NAME = dummyapp
>
> FILE_GUID = 9882F085-460D-0D60-0AA1-XXXXXXXXXXX
>
> MODULE_TYPE = UEFI_APPLICATION
>
> VERSION_STRING = 1.0
>
> ENTRY_POINT = UefiMain
>
>
>
> [Sources]
>
> dummyapp.c
>
>
>
> [Packages]
>
> MdePkg/MdePkg.dec
>
> MdeModulePkg/MdeModulePkg.dec
>
> dummypkg/dummypkg.dec
>
>
>
>
>
> [LibraryClasses]
>
> UefiApplicationEntryPoint
>
> UefiLib
>
> dummylib
>
> ********************************************************
>
>
>
>
>
> now the dummypkg.dsc has the following content.
>
>
>
> *****************************************
>
> [Defines]
>
> DEC_SPECIFICATION = 0x00010005
>
> PACKAGE_NAME = dummypkg
>
> PACKAGE_GUID = 7441d281-3eae-4b77-8392-xxxxxxxxxxxx
>
> PACKAGE_VERSION = 0.94
>
>
>
> [Includes]
>
> Include
>
> Include/Library
>
>
>
> [LibraryClasses]
>
>
>
> dummylib|Include/Library/dummylib.h
>
> ****************************************************************************
>
>
>
> I have the library dummylib.lib. Now Question is where i need to keep the
> ".lib" file in order to compile the dummyapp.inf. I am getting the error
> saying dummylib.lib is not found. I dont have the code for dummylib.lib but i
> have the include headers . Could any one figure it out how to compile the app.
>
> Thanks,
>
>
>
> ~ParthaS
>
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
>
> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
> Registered in England & Wales, Company No: 2557590
> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
> Registered in England & Wales, Company No: 2548782
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> <http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net <mailto:edk2-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> <https://lists.sourceforge.net/lists/listinfo/edk2-devel>
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel