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 management tools - runs directly from a target device
Host Host management tools - runs on the Linux dev machine
Build Build management tools - tools to manage building and installing Legato AF

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 of legs and run the legs 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.