From 8ebbfda996cf1dc27b64f84ec9122c19c6fb90f1 Mon Sep 17 00:00:00 2001 From: Jan Jongboom Date: Thu, 5 Jan 2017 07:42:19 +0000 Subject: [PATCH] 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 --- targets/mbedos5/.gitignore | 1 + targets/mbedos5/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/targets/mbedos5/.gitignore b/targets/mbedos5/.gitignore index 795c32866..1aaa6a584 100644 --- a/targets/mbedos5/.gitignore +++ b/targets/mbedos5/.gitignore @@ -2,6 +2,7 @@ mbed-os mbed-events .build .mbed +.temp/ mbed_settings.py js/pins.js source/pins.cpp diff --git a/targets/mbedos5/Makefile b/targets/mbedos5/Makefile index a0b4d3d52..30eff3842 100644 --- a/targets/mbedos5/Makefile +++ b/targets/mbedos5/Makefile @@ -80,6 +80,7 @@ endif getlibs: .mbed .mbed: + echo 'ROOT=.' > .mbed mbed config root . mbed toolchain GCC_ARM mbed target $(BOARD)