Skip to content

Commit ab9ee47

Browse files
committed
warn=all works
1 parent 74c585f commit ab9ee47

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

board/SConscript

-24
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import subprocess
3-
import re
43

54
PREFIX = "arm-none-eabi-"
65
BUILDER = "DEV"
@@ -124,36 +123,13 @@ with open("obj/cert.h", "w") as f:
124123
f.write("\n".join(cert) + "\n")
125124

126125
includes = [
127-
"/usr/lib/gcc/arm-none-eabi/9.2.1/include",
128126
"inc/STM32F4xx_HAL_Driver/Inc/Legacy",
129127
"inc/STM32F4xx_HAL_Driver/Inc",
130128
"inc",
131129
'..',
132130
'.'
133131
]
134132

135-
def exist_scan(node, env, path):
136-
include_re = re.compile(r'^#include\s+(\S+)$', re.M)
137-
exist_files = []
138-
139-
contents = node.get_text_contents()
140-
include_dirs = include_re.findall(contents)
141-
cpppaths = env["CPPPATH"]
142-
143-
for file in include_dirs:
144-
file = file.strip('"<>"')
145-
for cpppath in cpppaths:
146-
cpppath = Dir(cpppath).relpath
147-
p = os.path.join(cpppath, file)
148-
if os.path.isfile(p):
149-
exist_files.append(File(p))
150-
return exist_files
151-
my_exist_scan = Scanner(name="EXIST_SCANNER",function=exist_scan)
152-
file_extensions = ['.c', '.h', '.cc', '.cpp']
153-
for e in file_extensions:
154-
SourceFileScanner.add_scanner(e,my_exist_scan)
155-
156-
157133
for project_name in build_projects:
158134
project = build_projects[project_name]
159135
linkerscript_fn = File(project["LINKER_SCRIPT"]).srcnode().relpath

0 commit comments

Comments
 (0)