Bug 10086

Summary: RMC: RMC Project - single library, single API
Product: [Build System, Metadata & Runtime] BSPs Reporter: Jianxun Zhang <jianxun.zhang>
Component: bsps-meta-intelAssignee: Jianxun Zhang <jianxun.zhang>
Status: RESOLVED FIXED QA Contact: Jair Gonzalez <jair.de.jesus.gonzalez.plascencia>
Severity: enhancement    
Priority: Medium+ CC: bluelightning, jose.perez.carranza, sgw, tom.zanussi
Version: 2.2   
Target Milestone: 2.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10087, 10092, 10126    

Description Jianxun Zhang 2016-08-04 20:33:01 UTC
The current RMC project provides 3 APIs and 2 libraries for clients in UEFI and Linux user space context.

I think we can refactor the project to have just 1 API and library (built respectively for UEFI and user space), so that necessary logic for RMC in clients is minimized.
Comment 1 Jianxun Zhang 2016-10-31 19:48:02 UTC
I have had patches to support single libraries. I am working on a big patch to provide APIs in rmc project.
Comment 2 Jianxun Zhang 2016-11-22 21:22:18 UTC
I have submitted a big patch series to yocto mailing list. The submission includes this task and more enhancements:

() Simplify two libs into one for each context, Linux or EFI (this bz10086)

() Provide APIs for clients. They can use either single API
to perform a query or use two APIs to perform mulitple queries
for a better runtime performance. (this bz10086)

() Remove dependency to gnu-efi in EFI build

() No need to tell EFI arch in rmc build anymore

() Remove the obsolete data type and usage for kernel cmdline

() Misc. fixes in Makefiles and source code.

I anticipate to receive multiple feedbacks from the community, given the huge size of the series. Update my estimation for the remained actions:

() follow-up any feedbacks on the patch series.

() Submit another patch series in meta-intel once the submission is merged in rmc project:
   - update rmc recipe to the latest rmc revision and cleaning up
   - remove gnu-efi from meta-intel. We don't have to carry it any more

   -
Comment 3 Jianxun Zhang 2016-11-28 22:04:09 UTC
I have submitted a patch series to meta-intel mail list to update rmc and other pieces in meta-intel to make these works effective today.