diff options
author | Anup Patel <apatel@ventanamicro.com> | 2022-08-08 09:33:09 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-08-08 09:33:09 +0530 |
commit | 662e631ccef2b20d7aba5d077ae0891f6b55ad2d (patch) | |
tree | 050647025af324af5624a048ef352287f72f4eb3 /Kconfig | |
parent | 422f0e0486dd30196c11e43763510410c8632bcb (diff) | |
download | opensbi-662e631ccef2b20d7aba5d077ae0891f6b55ad2d.zip opensbi-662e631ccef2b20d7aba5d077ae0891f6b55ad2d.tar.gz opensbi-662e631ccef2b20d7aba5d077ae0891f6b55ad2d.tar.bz2 |
Makefile: Add initial kconfig support for each platform
We extend the top-level makefile to allow kconfig based configuration
for each platform where each platform has it's own set of configs with
"defconfig" being the default config.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Tested-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
Diffstat (limited to 'Kconfig')
-rw-r--r-- | Kconfig | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +# SPDX-License-Identifier: BSD-2-Clause + +mainmenu "OpenSBI $(OPENSBI_PLATFORM) Configuration" + +config OPENSBI_SRC_DIR + string + option env="OPENSBI_SRC_DIR" + +config OPENSBI_PLATFORM + string + option env="OPENSBI_PLATFORM" + +config OPENSBI_PLATFORM_SRC_DIR + string + option env="OPENSBI_PLATFORM_SRC_DIR" + +menu "Platform Options" +source "$(OPENSBI_PLATFORM_SRC_DIR)/Kconfig" +endmenu + +source "$(OPENSBI_SRC_DIR)/lib/utils/Kconfig" + +source "$(OPENSBI_SRC_DIR)/firmware/Kconfig" |