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/ .idea/
# CMake # CMake
cmake-build-*/ cmake-build-*
CMakeFiles/ cmake-*
CMakeFiles
**/CMakeCache.txt **/CMakeCache.txt
cmake_install.cmake cmake_install.cmake
Makefile Makefile
build/ build
tools
# Resulting binary files # Resulting binary files
*.a *.a

View File

@ -20,6 +20,9 @@ MACHINE="$(uname -m)"
main() { main() {
local target="$1" local target="$1"
mkdir -p "$TOOLS_DIR"
[[ ! -d "$TOOLS_DIR/$GCC_ARM_VER" ]] && GetGcc [[ ! -d "$TOOLS_DIR/$GCC_ARM_VER" ]] && GetGcc
[[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ]] && GetNrfSdk [[ ! -d "$TOOLS_DIR/$NRF_SDK_VER" ]] && GetNrfSdk
[[ ! -d "$TOOLS_DIR/mcuboot" ]] && GetMcuBoot [[ ! -d "$TOOLS_DIR/mcuboot" ]] && GetMcuBoot