forked from Mirrors/opensbi
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>
This commit is contained in:
23
Kconfig
Normal file
23
Kconfig
Normal file
@@ -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"
|
Reference in New Issue
Block a user