File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 28
28
29
29
30
30
def extract_files (cppdefines , files_type ):
31
- files = []
32
- if "build." + files_type in board :
33
- files .extend (
34
- [
35
- join ("$PROJECT_DIR" , f )
36
- for f in board .get ("build." + files_type , "" ).split ()
37
- if f
38
- ]
39
- )
31
+ result = []
32
+ files = env .GetProjectOption ("board_build.%s" % files_type , "" ).splitlines ()
33
+ if files :
34
+ result .extend ([join ("$PROJECT_DIR" , f .strip ()) for f in files if f ])
40
35
else :
41
36
files_define = "COMPONENT_" + files_type .upper ()
42
37
for define in cppdefines :
@@ -58,13 +53,13 @@ def extract_files(cppdefines, files_type):
58
53
for f in value .split (":" ):
59
54
if not f :
60
55
continue
61
- files .append (join ("$PROJECT_DIR" , f ))
56
+ result .append (join ("$PROJECT_DIR" , f ))
62
57
63
- for f in files :
58
+ for f in result :
64
59
if not isfile (env .subst (f )):
65
60
print ('Warning! Could not find file "%s"' % basename (f ))
66
61
67
- return files
62
+ return result
68
63
69
64
70
65
def remove_config_define (cppdefines , files_type ):
You can’t perform that action at this time.
0 commit comments