Hi,
We have a custom board that includes an ST LIS2DE12 sensor. I followed what looks like the normal procedure to create an out-of-tree driver for it by refactoring the Zephyr driver for a similar ST part. I've included the driver in my source tree, and it compiles normally, but won't link with the typical "undefined reference to `__device_dts_ord_xxx'" link error.
Note that this is a freestanding application.
I've cloned the hello_world application, and added my driver (and an overlay that includes the part). Obviously - it can't run, since the DK board doesn't have the part - but what I'm trying to do is to get it to build without the linker error. I've attached the code to this ticket.
What magic do I need to include in my source tree to get my out-of-tree driver to build and link as part of the zephyr tree?
Thanks in advance,
Cammie