mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: utils/sys: Use kconfig for enabling/disabling drivers
We update system drivers makefile to use kconfig for enabling/disabling drivers. To avoid compile errors, we also enable appropriate system drivers for each platform. 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:
13
lib/utils/sys/Kconfig
Normal file
13
lib/utils/sys/Kconfig
Normal file
@@ -0,0 +1,13 @@
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
menu "System Device Support"
|
||||
|
||||
config SYS_HTIF
|
||||
bool "Host transfere interface (HTIF) support"
|
||||
default n
|
||||
|
||||
config SYS_SIFIVE_TEST
|
||||
bool "SiFive test support"
|
||||
default n
|
||||
|
||||
endmenu
|
@@ -7,5 +7,5 @@
|
||||
# Anup Patel <anup.patel@wdc.com>
|
||||
#
|
||||
|
||||
libsbiutils-objs-y += sys/htif.o
|
||||
libsbiutils-objs-y += sys/sifive_test.o
|
||||
libsbiutils-objs-$(CONFIG_SYS_HTIF) += sys/htif.o
|
||||
libsbiutils-objs-$(CONFIG_SYS_SIFIVE_TEST) += sys/sifive_test.o
|
||||
|
Reference in New Issue
Block a user