Make TOOLS_DIR if needed
Added some extra dir names to gitignore
This commit is contained in:
		
							parent
							
								
									186fee9337
								
							
						
					
					
						commit
						1f243aeedb
					
				
							
								
								
									
										8
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -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
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user