diff options
author | Vivian Wang <dramforever@live.com> | 2022-10-11 00:34:45 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-10-23 11:01:33 +0530 |
commit | 22f38ee6c658a660083aa45c4ec6c72f66a17260 (patch) | |
tree | 9509b624ba69f7e999fd71480ac477edb291122c /Kconfig | |
parent | 56bed1a0fe39cc788452202827ab5fdc3c58bc20 (diff) | |
download | opensbi-22f38ee6c658a660083aa45c4ec6c72f66a17260.zip opensbi-22f38ee6c658a660083aa45c4ec6c72f66a17260.tar.gz opensbi-22f38ee6c658a660083aa45c4ec6c72f66a17260.tar.bz2 |
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 'Kconfig')
-rw-r--r-- | Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -18,6 +18,8 @@ menu "Platform Options" source "$(OPENSBI_PLATFORM_SRC_DIR)/Kconfig" endmenu +source "$(OPENSBI_SRC_DIR)/lib/sbi/Kconfig" + source "$(OPENSBI_SRC_DIR)/lib/utils/Kconfig" source "$(OPENSBI_SRC_DIR)/firmware/Kconfig" |