Conversation
|
🚀 PR was released in |
|
Woohoo!! |
Great observation. Because each of the hundreds of boards supported by Zephyr can be a Moddable SDK target, it is a little overwhelming. The good news is that As an example, the nucleo_f413zh board support is just two files. The first defines import device from "mc/devicetree"
export default device;
This is something we'd like to do, so that a port could live outside the SDK, but it has eluded us to date. But, for this particular Zephyr need, having no directory at all seems even simpler. |
Fixes #222
With this PR, Zephyr support has been added to the following commands:
It's not a quick process at the moment. The slowest part is the
west packages pip --installandwest sdk install. I'll explore ways to speed it up as folks use it. It may also be worth exploring usinguvfor the python virtual environment creation rather than the system or brew/apt installed python. It would be neat to try out zerobrew for faster Homebrew package management as well.There's also opportunity for other DX features like a convenience command for creating a new board target, managing overlays, and scanning for available devices. At the moment, new board targets will be blown away by Moddable SDK updates unless a specific branch is provided to the
xs-dev updatecommand. Maybe it could be possible to store board / device targets in a project directory instead of the SDK repo.