forked from Mirrors/opensbi
		
	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:
		@@ -6,4 +6,6 @@ source "$(OPENSBI_SRC_DIR)/lib/utils/reset/Kconfig"
 | 
			
		||||
 | 
			
		||||
source "$(OPENSBI_SRC_DIR)/lib/utils/serial/Kconfig"
 | 
			
		||||
 | 
			
		||||
source "$(OPENSBI_SRC_DIR)/lib/utils/sys/Kconfig"
 | 
			
		||||
 | 
			
		||||
endmenu
 | 
			
		||||
 
 | 
			
		||||
@@ -14,10 +14,12 @@ config FDT_RESET_GPIO
 | 
			
		||||
 | 
			
		||||
config FDT_RESET_HTIF
 | 
			
		||||
	bool "Host transfer interface (HTIF) FDT reset driver"
 | 
			
		||||
	select SYS_HTIF
 | 
			
		||||
	default n
 | 
			
		||||
 | 
			
		||||
config FDT_RESET_SIFIVE_TEST
 | 
			
		||||
	bool "SiFive Test FDT reset driver"
 | 
			
		||||
	select SYS_SIFIVE_TEST
 | 
			
		||||
	default n
 | 
			
		||||
 | 
			
		||||
config FDT_RESET_SUNXI_WDT
 | 
			
		||||
 
 | 
			
		||||
@@ -15,6 +15,7 @@ config FDT_SERIAL_GAISLER
 | 
			
		||||
 | 
			
		||||
config FDT_SERIAL_HTIF
 | 
			
		||||
	bool "Host transfer interface (HTIF) UART FDT driver"
 | 
			
		||||
	select SYS_HTIF
 | 
			
		||||
	default n
 | 
			
		||||
 | 
			
		||||
config FDT_SERIAL_SHAKTI
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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