BigW Consortium Gitlab

Commit baa74d24 by David Frey

Disable Makefile and update README

The Makefile is currently broken due to LE-7663. Disable the Makefile and update the README to provide build instructions.
parent 0bb7d989
# This makefile depends on targetDefs.* files in the Legato root folder. In order to facilitate the
# inclusion of these files, make needs to be invoked with a --include-dir=$LEGATO_ROOT parameter.
TARGET:=wp85
# Default targets definitions from Framework
include targetDefs
.PHONY: all $(TARGET)
all: $(TARGET)
# The comment below is for Developer Studio integration. Do not remove it.
# DS_CLONE_ROOT(MANGOH_ROOT)
MANGOH_ROOT=$(shell pwd)
# The comment below is for Developer Studio integration. Do not remove it.
# DS_CUSTOM_OPTIONS(EXTRA_OPTS)
EXTRA_OPTS = -s "$(MANGOH_ROOT)/apps/GpioExpander/gpioExpanderService" \
-s "$(MANGOH_ROOT)/apps/RedSensorToCloud"
$(TARGET):
export MANGOH_ROOT=$(MANGOH_ROOT) && \
mksys \
$(MKSYS_FLAGS) \
-t $(TARGET) \
-i "$(LEGATO_ROOT)/interfaces/supervisor" \
-i "$(LEGATO_ROOT)/interfaces/positioning" \
-i "$(LEGATO_ROOT)/interfaces/airVantage" \
-i "$(LEGATO_ROOT)/interfaces/modemServices" \
-i "$(LEGATO_ROOT)/interfaces" \
-i "$(LEGATO_ROOT)/interfaces/atServices" \
-i "$(LEGATO_ROOT)/interfaces/wifi" \
-i "$(LEGATO_ROOT)/interfaces/secureStorage" \
-i "$(LEGATO_ROOT)/interfaces/logDaemon" \
-s "$(LEGATO_ROOT)/modules/WiFi/service" \
-s "$(LEGATO_ROOT)/components" \
-s "$(LEGATO_ROOT)/modules/WiFi/apps/tools/wifi" \
-s "$(LEGATO_ROOT)/apps/platformServices/airVantage" \
-s "$(LEGATO_ROOT)/apps/platformServices" \
-s "$(LEGATO_ROOT)/apps/tools" \
$(EXTRA_OPTS) \
-C -g -X -g -L -g \
mangOH_Green.sdef
#mangOH_Red.sdef
clean:
rm -rf /tmp/mkbuild_* _build_* *.update
all:
$(info Bug LE-7663 prevents this Makefile from building a correct Legato system.)
$(info Once this bug is fixed in a stable version of Legato, the Makefile will)
$(info be restored. For now, build the mangOH system by executing the following)
$(info command from a Legato working copy:)
$(info make wp85 SDEF_TO_USE=$$MANGOH_ROOT/mangOH_Red.sdef MKSYS_FLAGS="-s $$MANGOH_ROOT/apps/GpioExpander/gpioExpanderService -s $$MANGOH_ROOT/apps/RedSensorToCloud")
$(info Note that you must first define MANGOH_ROOT. eg. export MANGOH_ROOT=~/mangOH)
exit 1
# MangOH
Base project containing apps playing with MangOH hardware
Base project containing apps and drivers for the mangOH hardware
## Setup
### Linux
Open a terminal and load Legato development environment
* `source ~/legato/packages/legato.sdk.latest/resources/configlegatoenv`
### Windows
Launch the **Legato Command Line** shortcut to load the Legato development environment
### Get the source code
Clone this repository and the submodules it requires
* `git clone --recursive git://github.com/mangOH/mangOH`
### Build
Build the mangOH Legato system
* `make --include-dir=$LEGATO_ROOT wp85`
1. Download and install the appropriate toolchain from [source.sierrawireless.com](https://source.sierrawireless.com/resources/legato/downloads/)
1. Get the Legato source code as described by the [Legato README](https://github.com/legatoproject/legato-af/blob/master/README.md)
1. Clone the mangOH source code by running `git clone --recursive git://github.com/mangOH/mangOH`
1. `cd` into the Legato working folder and run the following command to build a system for the mangOH Red: `make wp85 SDEF_TO_USE=$$MANGOH_ROOT/mangOH_Red.sdef MKSYS_FLAGS="-s $$MANGOH_ROOT/apps/GpioExpander/gpioExpanderService -s $$MANGOH_ROOT/apps/RedSensorToCloud"`
1. Run `./bin/legs` to put the Legato tools into `$PATH`
1. Run `instlegato wp85 192.168.2.2` to install the system onto the mangOH connected via a USB cable to the CF3 USB port.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment