summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorVivian Wang <dramforever@live.com>2022-10-10 19:34:45 +0300
committerAnup Patel <anup@brainfault.org>2022-10-23 08:31:33 +0300
commit22f38ee6c658a660083aa45c4ec6c72f66a17260 (patch)
tree9509b624ba69f7e999fd71480ac477edb291122c /Kconfig
parent56bed1a0fe39cc788452202827ab5fdc3c58bc20 (diff)
downloadopensbi-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 'Kconfig')
-rw-r--r--Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index b3213a9..acfc138 100644
--- a/Kconfig
+++ b/Kconfig
@@ -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"