简体   繁体   English

将C库移植到UEFI

[英]Porting C library to UEFI

I have VC++ solution with two projects; 我有两个项目的VC ++解决方案; a console application and a pure C library. 控制台应用程序和纯C库。 The console project builds and links the C library statically. 控制台项目将静态构建并链接C库。

At the moment I have the Tianocore environment set up in Ubuntu according to Tianocore Quickstart . 目前,根据Tianocore Quickstart,我已经在Ubuntu中设置了Tianocore环境。

How do easiest replicate my console application in UEFI? 如何最简单地在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? 我可以例如使用HelloWorld UEFI示例应用程序以与控制台项目中类似的方式托管和构建C库吗?

Yes, you can built your C library in uefi environment as long as your library is not calling any functions based on OS API. 是的,只要您的库不基于OS API调用任何函数,就可以在uefi环境中构建C库。

And EDK2 has provided a StdLib package where you can find some standard C libraries to help you build your C program. EDK2提供了一个StdLib软件包,您可以在其中找到一些标准C库来帮助您构建C程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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