lib: utils/i2c: Use kconfig for enabling/disabling drivers
authorAnup Patel <apatel@ventanamicro.com>
Mon, 8 Aug 2022 04:03:57 +0000 (09:33 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 8 Aug 2022 04:03:57 +0000 (09:33 +0530)
commitb126ce4a8f5e5f8a45a62ec308e4f74ee590d467
tree12fce35adfa8cf684024bfece89c03fa3908fd6e
parent0b1cf2f64519887188c83d17d21302580a6c970e
lib: utils/i2c: Use kconfig for enabling/disabling drivers

We update i2c drivers makefile to use kconfig for enabling/disabling
drivers. To avoid compile errors, we also enable appropriate i2c
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>
lib/utils/Kconfig
lib/utils/i2c/Kconfig [new file with mode: 0644]
lib/utils/i2c/objects.mk
platform/generic/configs/defconfig