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

Fix debug migtd image build #181

Merged
merged 3 commits into from
Mar 13, 2024
Merged

Conversation

gaojiaqi7
Copy link
Contributor

@gaojiaqi7 gaojiaqi7 commented Mar 6, 2024

  • Adjust the image layout to make enough space for Payload
  • Add debug migtd build job in CI

Enable debug profile for migtd binary only. This can minimize the
size of the `BFV` region.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0306/adjust_image_layout branch from 29d6da3 to 0fdf145 Compare March 6, 2024 14:17
@gaojiaqi7 gaojiaqi7 marked this pull request as draft March 6, 2024 14:54
@gaojiaqi7 gaojiaqi7 force-pushed the 0306/adjust_image_layout branch 2 times, most recently from 22166b7 to 2955f39 Compare March 7, 2024 01:00
@gaojiaqi7 gaojiaqi7 marked this pull request as ready for review March 7, 2024 01:20
@gaojiaqi7 gaojiaqi7 force-pushed the 0306/adjust_image_layout branch 2 times, most recently from 6c9b9b6 to eebe30f Compare March 7, 2024 03:26
@gaojiaqi7 gaojiaqi7 requested a review from jyao1 March 7, 2024 04:31
@@ -6,7 +6,7 @@ use r_efi::efi::Guid;
use td_uefi_pi::{fv, pi};

pub const CONFIG_VOLUME_BASE: usize = 0xFF000000;
pub const CONFIG_VOLUME_SIZE: usize = 0x40000;
pub const CONFIG_VOLUME_SIZE: usize = 0x20000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need change this? Everything should be in image_layout.json.

@gaojiaqi7 gaojiaqi7 force-pushed the 0306/adjust_image_layout branch from eebe30f to 41aff84 Compare March 12, 2024 02:15
@gaojiaqi7 gaojiaqi7 force-pushed the 0306/adjust_image_layout branch from 41aff84 to 50e2307 Compare March 12, 2024 02:21
Migtd using new attestation library requires more image spaces for
debug build. Ajusts the `CFV, `TempRam` and `Ipl` size based on current
status to get more space for the `Payload` region.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0306/adjust_image_layout branch from 50e2307 to e2c0881 Compare March 12, 2024 05:42
@jyao1 jyao1 merged commit d5c1023 into intel:main Mar 13, 2024
16 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