samples/subsys/mgmt/osdp: Fix build issues

The samples/subsys/mgmt/osdp utilize GPIO so having it set in the
prj.conf is needed since not all platforms enable GPIO by default.

To address the 'No SOURCES given to Zephyr library: drivers__gpio'
add a 'depends on gpio' to the sample.yaml to only build this on
platforms that have GPIO driver support.

Fixes #39180

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-10-06 07:51:50 -05:00 committed by Anas Nashif
commit bfcb32b755
4 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@
CONFIG_PRINTK=y
CONFIG_LOG=y
CONFIG_GPIO=y
# OSDP config
CONFIG_OSDP=y

View file

@ -4,6 +4,7 @@ sample:
tests:
sample.mgmt.osdp.control_panel:
tags: osdp
depends_on: gpio
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and CONFIG_SERIAL
harness: osdp
integration_platforms:

View file

@ -6,6 +6,7 @@
CONFIG_PRINTK=y
CONFIG_LOG=y
CONFIG_GPIO=y
# OSDP config
CONFIG_OSDP=y

View file

@ -4,6 +4,7 @@ sample:
tests:
sample.mgmt.osdp.peripheral_device:
tags: osdp
depends_on: gpio
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and CONFIG_SERIAL
harness: osdp
integration_platforms: