Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick to earlgrey_1.0.0: [rom_ext,dice] Move dice_chain code from rom_ext to lib/cert #25069 #26185

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

sasdf
Copy link
Contributor

@sasdf sasdf commented Feb 10, 2025

This is manual cherry-pick from master, including

The first commit backport #26127 new function declaration from master to earlgrey_1.0.0.

The second commit applies #25069 to move the dice library.

The third commit is a new one that fixes the dice implementation dependency by separating the interface header.

PR 26127 introduced changes to the `dice_chain_attestation_owner` function
when cherrypicking to master. It measures ownerblock in rom_ext instead of
dice_chain library. This commit ports the changes back to earlgrey_1.0.0.

Change-Id: I2ea49170c72b85c9a5ec545a40e9b693fd90518a
Signed-off-by: Yi-Hsuan Deng <[email protected]>
(cherry picked from commit 6136439)
To share the dice code between (imm) rom_ext, those code in rom_ext.c are
refactored and move to the lib/cert/dice_chain* as a common library.

PR lowRISC#24980 has already refactored the code, and this PR moves them out from
the rom_ext.c to the library folder.

This PR only moves the code with necessary headers / dependencies rewrite.
All functionalities are unchanged.

Change-Id: I114fd31d72669c33e130e60868e1ee16500154d3
Signed-off-by: Yi-Hsuan Deng <[email protected]>
(cherry picked from commit f682e33)
This commit separates the interface out for the dice users to depend on. The
actual implementation will be chosen by the rom_ext linking dependencies.

Change-Id: Ibc218fa5b6ac0fc5314c1f5816995cb9ed957bb6
Signed-off-by: Yi-Hsuan Deng <[email protected]>
@sasdf sasdf marked this pull request as ready for review February 10, 2025 13:12
@sasdf sasdf requested a review from a team as a code owner February 10, 2025 13:12
@timothytrippel timothytrippel merged commit 8ced3bb into lowRISC:earlgrey_1.0.0 Feb 11, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants