File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,18 @@ def find_setup_script(bsp_name):
37
37
print_usage ()
38
38
exit ()
39
39
40
-
41
40
def update_submodule (path ):
42
- if (path and os .path .isdir (path )):
43
- cwd = os .getcwd ()
41
+ cwd = os .getcwd ()
42
+ try :
43
+ print ("Update submodule " + path )
44
44
os .system ("git submodule sync " + path )
45
45
os .system ("git submodule init " + path )
46
46
os .system ("git submodule update " + path )
47
47
os .chdir (path )
48
48
os .system ("git reset --hard HEAD" )
49
- os .chdir (cwd )
50
- else :
49
+ except :
51
50
print ("Failed to update submodule " + path )
52
-
51
+ os . chdir ( cwd )
53
52
54
53
update_submodule (STDK_CORE_PATH )
55
54
@@ -67,7 +66,8 @@ def update_submodule(path):
67
66
setup_script = find_setup_script (BSP_NAME )
68
67
69
68
BSP_PATH = os .path .join (STDK_REF_PATH , "bsp" , BSP_NAME )
70
- update_submodule (BSP_PATH )
69
+ if BSP_PATH and os .path .isdir (BSP_PATH ):
70
+ update_submodule (BSP_PATH )
71
71
72
72
setup_cmd = setup_script + " " + BSP_NAME
73
73
for args in EXTRA_ARGS :
You can’t perform that action at this time.
0 commit comments