Skip to content

Commit bfcb32b

Browse files
galaknashif
authored andcommitted
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 zephyrproject-rtos#39180 Signed-off-by: Kumar Gala <[email protected]>
1 parent 6e7f93a commit bfcb32b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

samples/subsys/mgmt/osdp/control_panel/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
CONFIG_PRINTK=y
88
CONFIG_LOG=y
9+
CONFIG_GPIO=y
910

1011
# OSDP config
1112
CONFIG_OSDP=y

samples/subsys/mgmt/osdp/control_panel/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sample:
44
tests:
55
sample.mgmt.osdp.control_panel:
66
tags: osdp
7+
depends_on: gpio
78
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and CONFIG_SERIAL
89
harness: osdp
910
integration_platforms:

samples/subsys/mgmt/osdp/peripheral_device/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
CONFIG_PRINTK=y
88
CONFIG_LOG=y
9+
CONFIG_GPIO=y
910

1011
# OSDP config
1112
CONFIG_OSDP=y

samples/subsys/mgmt/osdp/peripheral_device/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sample:
44
tests:
55
sample.mgmt.osdp.peripheral_device:
66
tags: osdp
7+
depends_on: gpio
78
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and CONFIG_SERIAL
89
harness: osdp
910
integration_platforms:

0 commit comments

Comments
 (0)