All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Install Packages

Before you install and build Legato, ensure you’ve completed all the steps in Prep Dev Host before installing Legato packages.

Ensure you have everything you need downloaded. Check Legato Packages.

To access the Legato application framework, you'll need a GitHub account https://legato.io/

Then Setup Target.

Go to Advanced topics if you need to rebuild your Yocto target.

If you’re using the bootable USB, you can move on to developing and running Legato Apps.

Install Legato Toolchain

You'll need to install the cross-toolchain for building ARM applications. Copy the either the 64-bit or 32-bit [Legato-Toolchain-file] to /opt/swi and then extract it.

You may need to use sudo:

$ mkdir -p /opt/swi
$ cp [Legato-Toolchain-file-name] /opt/swi
$ cd /opt/swi
$ sudo tar xvjf [Legato-Toolchain-file-name]

Install and Make Legato

Install the Legato application framework on your dev host.

First, create a directory where you'll run Legato (e.g., mkdir Legato).

Then run:

git clone https://github.com/legatoproject/legato-af.git

You'll be prompted for your GitHub credentials.

cd to your Legato directory

Run make.

Run $ bin/legs

Note
You must run this every time you open a new shell:
$ bin/legs

Build Legato Target

Run this to build the framework and AirVantage agent for the target (substitute ar7 for wp7 if building an AR7 target):

$ make wp7

Or run this to build the framework for the target without the AirVantage agent:

$ make wp7 INCLUDE_AIRVANTAGE=0

Copyright (C) Sierra Wireless, Inc. 2014. All rights reserved. Use of this work is subject to license.