From 9caed7a62e811a8df796e6be799357e0c7d37f68 Mon Sep 17 00:00:00 2001 From: Jan Jongboom Date: Wed, 4 Jan 2017 16:41:54 +0000 Subject: [PATCH] target: mbedos5: mbed CLI refuses to build if no .mbed file present 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. 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 795c32866d..1aaa6a5843 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 a0b4d3d52e..30eff38421 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)