Skip to content

Commit f6dc6a4

Browse files
committed
README.md - How one can build on windows
1 parent 78df734 commit f6dc6a4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,23 @@ brew install python cmake ninja zstd jq git
141141
```
142142
Note: Homebrew’s Python installation already includes `pip`, `setuptools` and `venv`.
143143

144+
### On Windows
145+
While installing and building natively on zephyr is supported as described at: https://docs.zephyrproject.org/latest/develop/getting_started/index.html.
146+
147+
Arduino currently has not ported their build setup to the Windows environment. However it is possible to setup and build the loaders on a Windows system using WSL and use the resulting Loader files within Windows. You will need to follow the instructions given above
148+
for installing on Ubuntu.
149+
150+
There are at least two strategies.
151+
1) Install the sources in the native Windows filesystem (NTFS, FAT32, etc) and within WSL, cd to the root directory where you installed your sources, like: /mnt/d/github/ArduinoCore-zephyr.
152+
153+
2) Install the sources within the WSL file system, like: ~/git/ArduinoCore-zephyr
154+
155+
There are pros and cons to both strategies. With 1) Builds are relatively very slow, but once done you can use it directly within
156+
Arduino. With 2) Builds are a lot faster, however, you then need to copy the resulting build back to somewhere in your windows directory
157+
structure. It is this location, that you will add to the Arduino IDE as mentioned below in the section: Using the core in Arduino IDE/CLI
158+
159+
In either strategy, you may have to update the link: cores\arduino\api as sometimes this link file may or may not work properly.
160+
144161
### Run the ```bootstrap``` script
145162
```bash
146163
cd ArduinoCore-zephyr

0 commit comments

Comments
 (0)