From 1f243aeedbc42349dbaba0ad3c2801606f4a5623 Mon Sep 17 00:00:00 2001 From: Joe Eaves Date: Tue, 22 Dec 2020 11:38:57 +0000 Subject: [PATCH] Make TOOLS_DIR if needed Added some extra dir names to gitignore --- .gitignore | 8 +++++--- docker/build.sh | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8d416f85..100e2580 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,13 @@ .idea/ # CMake -cmake-build-*/ -CMakeFiles/ +cmake-build-* +cmake-* +CMakeFiles **/CMakeCache.txt cmake_install.cmake Makefile -build/ +build +tools # Resulting binary files *.a diff --git a/docker/build.sh b/docker/build.sh index 48dd9f33..f35c2f3a 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -20,6 +20,9 @@ MACHINE="$(uname -m)" main() { local target="$1" + + mkdir -p "$TOOLS_DIR" + [[ ! -d "$TOOLS_DIR/$GCC_ARM_VER" ]] && GetGcc [[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ]] && GetNrfSdk [[ ! -d "$TOOLS_DIR/mcuboot" ]] && GetMcuBoot