Skip to content

UWARG/efs-zeropilot-3.5

Repository files navigation

ZeroPilot 3.5 Compile Commands

  • 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

Syntax

Windows

./Tools/tools.ps1 [function] [options]

Linux and Mac

./Tools/tools.bash [function] [options]

Function

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

Options are nonmandatory parameters which are used to override the default configurations specified in ./Tools/default_config.txt

Compile Only Options

  • -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

Run Only Options

  • -f
        Specifies a filter to selectively run tests in the GoogleTest executable

Examples

  • 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