From 22f38ee6c658a660083aa45c4ec6c72f66a17260 Mon Sep 17 00:00:00 2001 From: Vivian Wang Date: Tue, 11 Oct 2022 00:34:45 +0800 Subject: 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 Reviewed-by: Andrew Jones Reviewed-by: Anup Patel --- Kconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kconfig') 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" -- cgit v1.2.3