Bug 10086 - RMC: RMC Project - single library, single API
Summary: RMC: RMC Project - single library, single API
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 2.3 M1
Assignee: Jianxun Zhang
QA Contact: Jair Gonzalez
URL:
Whiteboard:
Depends on:
Blocks: 10087 10092 10126
  Show dependency tree
 
Reported: 2016-08-04 20:33 UTC by Jianxun Zhang
Modified: 2017-01-13 08:54 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.