Build Guide
This guide explains how to build the Wsh-Shell example application both on a PC and on embedded hardware.
Prerequisites
Ensure the required toolchain components are installed on your system:
For extra actions you should use python virtualenv with requirements.txt:
Or just run setup python env vscode task
Project Structure
The configuration file wsh_shell_cfg.h is not tracked in git. It is generated automatically in the example/ directory when building the example.
Building and Running Example
By default, the project is built in Debug mode. To build with the Release preset:
Generating Config Only
To copy the default config template into example/ without building:
This creates example/wsh_shell_cfg.h from src/wsh_shell_cfg_def.h.
Edit this file to customize the shell configuration for your project.
Cleaning the Build
⚠️ This does not delete
example/wsh_shell_cfg.h. Remove it manually if you want to regenerate it from the default template.
Example on Hardware
It has been moved to separate repos:
- https://github.com/whoosh-bike/wsh-shell-blue-pill-example
- https://github.com/whoosh-bike/wsh-shell-black-pill-example
Changing the Compiler
By default gcc is used. To switch to clang:
Additional Notes
- You can adjust build flags in
example/Makefile(optimization level, debug symbols, etc.) - If using Windows, please use a WSL environment