Add west.yml to use native Zephyr build system properly
This commit is contained in:
+1
-1
@@ -3,10 +3,10 @@
|
||||
.gcc-flags.json
|
||||
.vscode/browse.vc.db*
|
||||
.vscode
|
||||
.west
|
||||
html
|
||||
memory.map
|
||||
custom.ini
|
||||
zephyr/build
|
||||
tools
|
||||
*.bak
|
||||
*_bak
|
||||
|
||||
@@ -48,9 +48,21 @@ It is suggested to use Visual Studio Code and PlatformIO for firmware developmen
|
||||
|
||||
### Native Zephyr environment
|
||||
|
||||
You can also use the Zephyr build system directly for advanced configuration using `menuconfig` or if you need more recently added features.
|
||||
You can also use the Zephyr build system directly for advanced configuration with `menuconfig` or if you need more recently added features.
|
||||
|
||||
The CMake entry point is in the `zephyr` subfolder, so you need to run `west` command in that directory.
|
||||
This guide assumes you have already installed the Zephyr SDK and the west tool according to the [Zephyr documentation](https://docs.zephyrproject.org/latest/getting_started/). Also make sure that `west` is at least at version `0.8.0`.
|
||||
|
||||
Now after you cloned the repository (see above), go into the root firmware directory and initialize a west workspace:
|
||||
|
||||
west init -l zephyr
|
||||
|
||||
This command will create a `.west/config` file and set up the repository as specified in `zephyr/west.yml` file. Afterwards the following command pulls the Zephyr source and all necessary modules, which might take a while:
|
||||
|
||||
west update
|
||||
|
||||
The CMake entry point is in the `zephyr` subfolder, so you need to run `west build` and `west flash` command in that directory.
|
||||
|
||||
cd zephyr
|
||||
|
||||
Initial board selection (see `boards subfolder for correct names):
|
||||
|
||||
|
||||
@@ -7,3 +7,8 @@ prj_*.conf
|
||||
|
||||
# alternative location for custom DTS overlays or conf files
|
||||
boards*
|
||||
|
||||
# folders generated by west
|
||||
build
|
||||
modules
|
||||
rtos
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
manifest:
|
||||
remotes:
|
||||
- name: zephyrproject-rtos
|
||||
url-base: https://github.com/zephyrproject-rtos
|
||||
- name: libresolar
|
||||
url-base: https://github.com/LibreSolar
|
||||
projects:
|
||||
- name: zephyr
|
||||
remote: libresolar
|
||||
revision: v2.4-branch
|
||||
# path must be something else than zephyr as we get a Kconfig include recursion otherwise
|
||||
path: rtos
|
||||
import:
|
||||
# main zephyr modules should be placed in here into zephyr subdirectory
|
||||
path-prefix: zephyr
|
||||
# only get modules we actually need
|
||||
name-whitelist:
|
||||
- cmsis
|
||||
- edtt
|
||||
- hal_stm32
|
||||
Reference in New Issue
Block a user