Tools
Legato contains Tools that will help you configure and diagnose your target or dev machine and build Systems, Apps and Components for Legato.
They are broken down into 3 categories:
Section | Description |
---|---|
Target | Target tools - tools that run on the target device |
Target Management | Target management tools - tools for managing target devices (run on Linux dev machine) |
Build | Build management tools - build tools (run on Linux dev machine) |
Before running tools on your host machine you will need to configure your shell.
Configuring your Shell
To set up your shell environment to use the Legato command-line tools, run the legs
script (short for "legato shell") every time you open a new shell. Located in the bin
subdirectory of your Legato root directory.
- Note
- If the bin directory is missing or empty, it's because the framework has not been built yet.
bin/legs
You can run an interactive bash shell configured for Legato by running bin/legs
every time you open a new shell:
Run
$ bin/legs
After running legs
, you can exit
the shell at any time to terminate legs
and restore your shell's environment.
- Warning
- If you have two Legato framework versions installed on your PC, to switch versions you MUST
exit
out oflegs
and run thelegs
script again from the other version.
bin/configlegatoenv
You can also use configlegatoenv
as alternative to bin/legs
:
$ source bin/configlegatoenv
configlegatoenv does not spawn an new shell, instead it imports the Legato configuration within your current shell session. This is useful if you want to use bash alternatives like zsh
.
Copyright (C) Sierra Wireless Inc.