diff options
author | Vivian Wang <dramforever@live.com> | 2022-10-10 19:34:45 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-10-23 08:31:33 +0300 |
commit | 22f38ee6c658a660083aa45c4ec6c72f66a17260 (patch) | |
tree | 9509b624ba69f7e999fd71480ac477edb291122c /scripts | |
parent | 56bed1a0fe39cc788452202827ab5fdc3c58bc20 (diff) | |
download | opensbi-22f38ee6c658a660083aa45c4ec6c72f66a17260.tar.xz |
lib: sbi_ecall: Add Kconfig option for each extension
For each SBI extension, we:
- Add a Kconfig option for it
- Add the extension to sbi_ecall_exts only if the extension is enabled
- Add the corresponding sbi_ecall_* object file only if the extension is
enabled
Special cases are as follows:
- The legacy extensions are lumped together as one 'big' extension, as
has always been the case in OpenSBI code.
- The platform-defined vendor extensions are regarded as one extension.
- The Base extension cannot be disabled.
- sbi_ecall_replace implements multiple extensions, so it's not easy to
avoid linking it in. Enable it always, and use #ifdef to
disable/enable individual extensions.
Signed-off-by: Vivian Wang <dramforever@live.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions