Make TOOLS_DIR if needed

Added some extra dir names to gitignore
This commit is contained in:
Joe Eaves 2020-12-22 11:38:57 +00:00
parent 186fee9337
commit 1f243aeedb
2 changed files with 8 additions and 3 deletions

8
.gitignore vendored
View File

@ -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

View File

@ -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