What is the recommended way to make a a custom driver available to all projects? #65427
-
I am developing some custom drivers for a project. Currently, I am developing them out of tree for this specific project. I would want to make them available globally so I can reuse them in my other projects. What would best way to do that? I know I can probably just move everything to the main Zephyr repo (the one that west created by running |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi, This is exactly what zephyr modules are made for: |
Beta Was this translation helpful? Give feedback.
-
@AdelQraft I think your case is the same as mine. I don't want to mess around with the main zephyr. So I have a folder I called "sdk-mycustomprj" by following topology 3 but for you, topology 2 seems enough, see here topology 2-3 https://docs.zephyrproject.org/latest/develop/west/workspaces.html#west-t2 see this sample |
Beta Was this translation helpful? Give feedback.
-
Hi @AdelQraft and @zafersn , Best regards |
Beta Was this translation helpful? Give feedback.
-
I have the same question here, I know the Zephyr Example Application . |
Beta Was this translation helpful? Give feedback.
Hi @AdelQraft and @zafersn ,
FYI, the Zephyr Project has a Zephyr Example Application repo, which shows an example how to do this. The repo includes an out-of-tree sensor driver. And the repo includes a manifest file so West can clone the Zephyr repo and other dpendencies when this example repo is initialized.
Best regards