-
A powershell script is provided for Windows
-
A bash script is provided for Linux and Mac
-
Once compiled, binaries for flashing can be found under ./Tools/Firmware/build
-
Once compiled, a testing executable can be found under ./Tools/Testing/build
./Tools/tools.ps1 [function] [options]
./Tools/tools.bash [function] [options]
The function is a mandatory parameter that specifies script action: compile or run
- Set to compile to build the project for either flashing or testing
- Set to run to execute an existing test executable
Options are nonmandatory parameters which are used to override the default configurations specified in ./Tools/default_config.txt
-
-t
Specifies the build type. Set to either Firmware or Testing -
-p
Specifies the platform to build for (i.e. nucleol552zeq) -
-c
A clean build will be conducted if and only if this flag is present
- -f
Specifies a filter to selectively run tests in the GoogleTest executable
-
Compile with default settings, no clean
./Tools/tools.ps1 compile -
Compile with default settings, clean
./Tools/tools.ps1 compile -c -
Compile with default settings except for compile type, clean
./Tools/tools.ps1 compile -t Testing -c -
Run with default filter
./Tools/tools.ps1 run -
Run with custom filter
./Tools/tools.ps1 run -f <filter> -
Note: The bash version of these examples have the same structure, just replace .ps1 with .bash