target: mbedos5: mbed CLI refuses to build if no .mbed file present (#1512)

With the newest release of mbed CLI (1.0.0) it error's when no .mbed file is present in the project root. This breaks builds for JerryScript on mbed OS 5. With this patch we create this file and builds succeed again. We cannot use `mbed new` because it also creates a new git repository in targets/mbedos5 folder which is not what we want.

Fixes #1511

JerryScript-DCO-1.0-Signed-off-by: Jan Jongboom janjongboom@gmail.com
This commit is contained in:
Jan Jongboom 2017-01-05 07:42:19 +00:00 committed by László Langó
parent 0026519040
commit 8ebbfda996
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ mbed-os
mbed-events
.build
.mbed
.temp/
mbed_settings.py
js/pins.js
source/pins.cpp

View File

@ -80,6 +80,7 @@ endif
getlibs: .mbed
.mbed:
echo 'ROOT=.' > .mbed
mbed config root .
mbed toolchain GCC_ARM
mbed target $(BOARD)