Make Legato
This topic explains how to make (i.e., build) Legato.
Make Legato on localhost
cd to your Legato directory.
Run make:
make localhost
These are basicLegatoHostDirs installed.
This will build a system update pack for the target, located under the build directory for your target (e.g., build/localhost/system.localhost.update).
Configure 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. You can find the legs
script in the bin
subdirectory of the Legato app framework directory (appears when the framework is built).
You need to set up your shell environment to use the Legato command-line tools.
bin/legs
You can run bin/legs
every time you open a new shell:
Run
$ bin/legs
After running legs
, you can run exit
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
This doesn't spawn a new shell. Instead, it imports the Legato configuration within your current shell session, which allows you to use bash alternatives like zsh
.
Make for Target
Run make
to build the framework for the target:
$ make wp85
Replace wp85
with the target type ID you're building (e.g., wp750x, ar7, ar86 or raspi
).
This will build a system update pack for the target, located under the build directory for your target (e.g., build/wp85/system.wp85.update
).
See Update Target Software for details on how to install your system update pack onto your target device.
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.