简体   繁体   中英

Porting C library to UEFI

I have VC++ solution with two projects; a console application and a pure C library. The console project builds and links the C library statically.

At the moment I have the Tianocore environment set up in Ubuntu according to Tianocore Quickstart .

How do easiest replicate my console application in UEFI?
Could I eg use the HelloWorld UEFI example application to host and build my C library in a similar manner as in my console project?

Yes, you can built your C library in uefi environment as long as your library is not calling any functions based on OS API.

And EDK2 has provided a StdLib package where you can find some standard C libraries to help you build your C program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM