DT_NODE_EXISTS() is true but DEVICE_DT_GET() expands to nothing #87335
Labels
area: Devicetree
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
If a device driver
depends on FOO
andFOO=n
, thenDT_NODE_EXISTS(foo_dev)
is true butDEVICE_DT_GET(foo_dev)
expands to nothing(i.e compiler error
undefined reference to __device_dts_ord_NN
)To Reproduce
See attached app. It uses the ws2812-gpio driver for ESP32 but the driver depends on a nordic SOC.
reproduce_app.zip
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: