From 83195114749f443c1158d2d94cb8a0bc49c2e151 Mon Sep 17 00:00:00 2001 From: Trung Hieu Le Date: Wed, 20 Nov 2024 15:32:59 +0100 Subject: [PATCH] drivers: video: sw_generator: Disable the driver if a real camera presents Do not enable the video sw generator if a real camera is present. This helps to save some spaces and to avoid unrelated code going into the built image. Signed-off-by: Trung Hieu Le Signed-off-by: Phi Bang Nguyen --- drivers/video/Kconfig.sw_generator | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/Kconfig.sw_generator b/drivers/video/Kconfig.sw_generator index f258a00e1a2f5..7675908b4bc19 100644 --- a/drivers/video/Kconfig.sw_generator +++ b/drivers/video/Kconfig.sw_generator @@ -3,7 +3,10 @@ # Copyright (c) 2016 Linaro Limited # SPDX-License-Identifier: Apache-2.0 +DT_CHOSEN_ZEPHYR_CAMERA := zephyr,camera + config VIDEO_SW_GENERATOR bool "Video Software Generator" + depends on !$(dt_chosen_enabled,$(DT_CHOSEN_ZEPHYR_CAMERA)) help Enable video pattern generator (for testing purposes).