build: add ACS_LEVEL CMake flag for baremetal compliance level#405
Merged
Merged
Conversation
Introduce a CMake build-time option, -DACS_LEVEL=<value>, that overrides the per-platform PLATFORM_OVERRIDE_<ACS>_LEVEL compliance level for baremetal ACS runs.
Accepted values:
* Positive integer <n>: sets ctx->level_value = <n> and selects LVL_FILTER_MAX (run all rules with level <= n). Per-ACS valid ranges are validated at configure time: bsa=1, sbsa=3..7, pc_bsa=1; out-of-range values produce a warning and are clamped at runtime.
* 'fr' (case-insensitive): selects LVL_FILTER_FR (future-requirements mode); ctx->level_value is left at the platform default.
When ACS_LEVEL is not set, the existing platform header default is used.
Changes:
* CMakeLists.txt: validate ACS_LEVEL, define ACS_LEVEL=<n> or ACS_LEVEL_FR for the C sources, and forward the value to nested wrapper builds via DEFAULT_OVERRIDE_ARGS.
* apps/baremetal/{bsa,sbsa,pc_bsa}_main.c: honor ACS_LEVEL / ACS_LEVEL_FR when applying user config defaults; existing runtime range clamping is preserved.
* pal/baremetal/module_config.rst: document the new flag and accepted values.
Signed-off-by: Chetan Singh <chetan.singh2@arm.com>
Change-Id: I01221549662678a61b3ecf57439a79fb29c9b64d
Contributor
Author
|
The SBSA NIST failure is not due to PR changes, but due to recent changes in edk2-libc which resulting in patch apply failures. SBSA NIST needs to be regenerated, will be taken in separate ticket. edk2-libc change reference: tianocore/edk2-libc@e9fed83 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a CMake build-time option, -DACS_LEVEL=, that overrides the per-platform PLATFORM_OVERRIDE__LEVEL compliance level for baremetal ACS runs.
Accepted values:
When ACS_LEVEL is not set, the existing platform header default is used.
Changes:
Change-Id: I01221549662678a61b3ecf57439a79fb29c9b64d