Skip to content

Commit 2ff984a

Browse files
trunghieulenxpkartben
authored andcommitted
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 <[email protected]> Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent 114d9b3 commit 2ff984a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/video/Kconfig.sw_generator

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
# Copyright (c) 2016 Linaro Limited
44
# SPDX-License-Identifier: Apache-2.0
55

6+
DT_CHOSEN_ZEPHYR_CAMERA := zephyr,camera
7+
68
config VIDEO_SW_GENERATOR
79
bool "Video Software Generator"
10+
depends on !$(dt_chosen_enabled,$(DT_CHOSEN_ZEPHYR_CAMERA))
811
help
912
Enable video pattern generator (for testing purposes).

0 commit comments

Comments
 (0)