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

Improved cmake for generating the configuration file #492

Closed
wants to merge 9 commits into from

Conversation

cmickeyb
Copy link
Contributor

Update cmake macros for more consistent processing of SGX configuration

* Simplify and document the PDO_DEBUG_BUILD configuration checks
* Move all of the configuration template processing into a single cmake FUNCTION
* Cmake now uses the configure_file command to perform variable substitution (no more sed)

bvavala and others added 6 commits May 18, 2024 00:40
If PDO_DEBUG_BUILD is not set or set to 0, the enclave is built with
SGX_DEBUG_FLAG set to 0, and signed with the DisableDebug flag set to 1.
So this commit adds one more step in the enclave cmake build to
create the xml configuration file accordingly.

Signed-off-by: Bruno Vavala <bruno.vavala@intel.com>
This commit adds the sgx debug flag to the TP policy,
dependent on PDO_DEBUG_BUILD.
Inside the TP, it adds the 64-bit flag check, and it checks
that that debug flag matches the one in registered TP policy.

Signed-off-by: Bruno Vavala <bruno.vavala@intel.com>
This normalizes the attestation verification checks with the TP.

Signed-off-by: Bruno Vavala <bruno.vavala@intel.com>
Signed-off-by: Bruno Vavala <bruno.vavala@intel.com>
…de and disabled in HW-Release mode

Signed-off-by: Bruno Vavala <bruno.vavala@intel.com>
* Simplify and document the PDO_DEBUG_BUILD configuration checks
* Move all of the configuration template processing into a single cmake FUNCTION
* Cmake now uses the configure_file command to perform variable substitution (no more sed)

Signed-off-by: Mic Bowman <mic.bowman@intel.com>
@cmickeyb cmickeyb requested a review from bvavala May 22, 2024 23:54
Clean up the logic and make the setup scripts more consistent.

Signed-off-by: Mic Bowman <mic.bowman@intel.com>
Make passes in environment variables to subprocesses. The
extra assignment to make opts is not necessary. CMAKE_ARGS
will be defined as appropriate and used in the makefiles.

Signed-off-by: Mic Bowman <mic.bowman@intel.com>
Signed-off-by: Mic Bowman <mic.bowman@intel.com>
@cmickeyb
Copy link
Contributor Author

addressed in #490

@cmickeyb cmickeyb closed this May 28, 2024
@cmickeyb cmickeyb deleted the bruno.may22 branch May 28, 2024 19:55
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.

None yet

2 participants