diff options
| author | Anup Patel <[email protected]> | 2022-08-08 09:33:31 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-08-08 09:33:31 +0530 |
| commit | 3e76a607b5df33b2bc200c942fa76e6d06689cf6 (patch) | |
| tree | 83b1400c69b36cf50915263205888a4f6d647b67 /lib/utils/sys | |
| parent | 2adc94b466ed8154fb72d276bbfaf35e22d97033 (diff) | |
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 <[email protected]>
Tested-by: Andrew Jones <[email protected]>
Acked-by: Atish Patra <[email protected]>
Tested-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils/sys')
| -rw-r--r-- | lib/utils/sys/Kconfig | 13 | ||||
| -rw-r--r-- | lib/utils/sys/objects.mk | 4 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lib/utils/sys/Kconfig b/lib/utils/sys/Kconfig new file mode 100644 index 00000000..ee85b1a3 --- /dev/null +++ b/lib/utils/sys/Kconfig @@ -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 diff --git a/lib/utils/sys/objects.mk b/lib/utils/sys/objects.mk index 06be3223..9f67aee2 100644 --- a/lib/utils/sys/objects.mk +++ b/lib/utils/sys/objects.mk @@ -7,5 +7,5 @@ # Anup Patel <[email protected]> # -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 |
