Build Guide
This guide explains how to build the Wsh-Shell library and run its example applications both on a PC and on embedded hardware.
Prerequisites
Ensure the required toolchain components are installed on your system:
đź’ˇ You can also use
clanginstead ofgccfor PC builds.
For exra actions you should use python virtualenv with requirements.txt:
Changing the Compiler
You can change the compiler in the project’s Makefile:
Main Build
To build the default library:
During the first build, the default configuration file wsh_shell_cfg_def.h will be copied to wsh_shell_cfg.h, which is used in the build process.
By default, the project is built in Debug mode.
To build with the Release preset:
This works for all examples (e.g., basic and blue_pill).
Cleaning the Build
To remove temporary build files while keeping your configuration:
⚠️ This does not delete
wsh_shell_cfg.h.
Remove it manually if you want to regenerate it from the default template.
Building and Running Example
Default Example (PC)
This example runs locally on your machine:
or
Example on Hardware
It has been moved to https://github.com/katbert-92/wsh-shell-blue-pill-example repo
Additional Notes
- You can adjust build presets or flags in the Makefile (e.g., optimization level, debug symbols).
- If using Windows, please do all in WSL enviroment.