This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

out-of-tree driver

Hi,
This time I'm on NCS 1.3.0.
Board definition is derived from nrf5340pdk_nrf5340, with some minor variations, and it is out-of-tree. I think it is OK.
Since I moved also my DAC driver out-of-tree I'm having problems with cmake build.
This is all they provide on this topic, nothing! (docs.zephyrproject.org/.../README.html)
I'm sharing the files holding out hope that someone could kindly try it out.
Just run the build.sh script to get the work done.


Thank you

Parents Reply
  • Dear Hakon,
    it might be our NCS installations differ in some environment variable.
    I guess this is beacuse I plumped for working with git submodules instead of letting west to manage multiple repositories in the standard way.
    Anyway, I've solved the problem by myself.
    I realized that, to get the driver compiled, cmake needed to know were to find the binding file (dts/bindings/dac/ti,dacx0501.yaml).
    Placing hereunder statement in the app's CMakeList.txt proved to be the right thing.

    list(APPEND DTS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../board-definition)

    This solves the problem.
    Thank you for your willing to help

Children
No Data
Related