Skip to content

Commit 89cd582

Browse files
authored
Merge pull request #20 from vkraleti/evk-support
DSP binaries for IQ8275-EVK & IQ9075-EVK platforms
2 parents 6884257 + e72abd2 commit 89cd582

File tree

2 files changed

+56
-4
lines changed

2 files changed

+56
-4
lines changed

config.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,14 @@ Install: qcs8300/Qualcomm/QCS8300-RIDE gdsp0 gdsp0-DSP.AT.1.0.1-00163-LEMANS-1
4646
Install: qcs615/Qualcomm/QCS615-RIDE adsp adsp-ADSP.VT.5.2.c6-00059-SM6150-1
4747
Install: qcs615/Qualcomm/QCS615-RIDE cdsp cdsp-CDSP.VT.2.2.c4-00019-SM6150-1
4848

49+
# IQ8275 EVK
50+
Link: qcs8300/Qualcomm/QCS8300-RIDE/dsp/adsp qcs8300/Qualcomm/IQ8275-EVK/dsp/adsp
51+
Link: qcs8300/Qualcomm/QCS8300-RIDE/dsp/cdsp qcs8300/Qualcomm/IQ8275-EVK/dsp/cdsp
52+
Link: qcs8300/Qualcomm/QCS8300-RIDE/dsp/gdsp0 qcs8300/Qualcomm/IQ8275-EVK/dsp/gdsp0
53+
54+
# IQ9075 EVK
55+
Link: sa8775p/Qualcomm/SA8775P-RIDE/dsp/adsp sa8775p/Qualcomm/IQ9075-EVK/dsp/adsp
56+
Link: sa8775p/Qualcomm/SA8775P-RIDE/dsp/cdsp sa8775p/Qualcomm/IQ9075-EVK/dsp/cdsp
57+
Link: sa8775p/Qualcomm/SA8775P-RIDE/dsp/cdsp1 sa8775p/Qualcomm/IQ9075-EVK/dsp/cdsp1
58+
Link: sa8775p/Qualcomm/SA8775P-RIDE/dsp/gdsp0 sa8775p/Qualcomm/IQ9075-EVK/dsp/gdsp0
59+
Link: sa8775p/Qualcomm/SA8775P-RIDE/dsp/gdsp1 sa8775p/Qualcomm/IQ9075-EVK/dsp/gdsp1

scripts/check.py

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,28 @@ def load_whence():
8585
def load_config():
8686
with open("config.txt", encoding="utf-8") as file:
8787
pattern_empty = re.compile("^#|^$")
88-
pattern_data = re.compile("Install: ([^ \t]+)[ \t]+([^ \t]+)[ \t]+([^ \t]+)\n")
88+
pattern_install = re.compile("Install: ([^ \t]+)[ \t]+([^ \t]+)[ \t]+([^ \t]+)\n")
89+
pattern_link = re.compile("Link: ([^ \t]+)[ \t]+([^ \t]+)\n")
8990

9091
for (lineno, line) in enumerate(file, start=1):
9192
if pattern_empty.match(line):
9293
continue
93-
match = pattern_data.match(line)
94+
95+
match = pattern_install.match(line)
96+
if match:
97+
yield ("install", lineno, *match.groups())
98+
continue
99+
100+
match = pattern_link.match(line)
94101
if match:
95-
yield (lineno, match.group(1), match.group(2), match.group(3))
102+
yield ("link", lineno, *match.groups())
96103
continue
97104

98105
raise Exception("config.txt: %d: failed to parse '%s'" % (lineno, line[:-1]))
99106

100107
DSPS = [ "adsp", "cdsp", "sdsp", "cdsp1", "gdsp0", "gdsp1" ]
101108

102-
def check_config(data, dirs):
109+
def check_install_config(data, dirs):
103110
(lineno, path, dsp, subdir) = data
104111
ret = True
105112

@@ -122,6 +129,40 @@ def check_config(data, dirs):
122129

123130
return ret
124131

132+
def check_link_config(data):
133+
(lineno, src_path, dst_path) = data
134+
ret = True
135+
136+
if src_path.endswith("/"):
137+
sys.stderr.write("config.txt: %d: trailing '/' in %s\n" % (lineno, src_path))
138+
ret = False
139+
140+
if dst_path.endswith("/"):
141+
sys.stderr.write("config.txt: %d: trailing '/' in %s\n" % (lineno, dst_path))
142+
ret = False
143+
144+
dsp_path = os.path.dirname(src_path)
145+
sourcedir = os.path.dirname(dsp_path)
146+
if not os.path.exists(sourcedir):
147+
sys.stderr.write("config.txt: %d: dir %s doesn't exist\n" % (lineno, sourcedir))
148+
ret = False
149+
150+
if os.path.basename(dsp_path) != "dsp":
151+
sys.stderr.write("config.txt: %d: DSP type not under 'dsp' dir %s\n" % (lineno, src_path))
152+
ret = False
153+
154+
return ret
155+
156+
def check_config(data, dirs):
157+
ret = True
158+
159+
if data[0] == "install":
160+
ret = check_install_config(data[1:], dirs)
161+
elif data[0] == "link":
162+
ret = check_link_config(data[1:])
163+
164+
return ret
165+
125166
def list_git():
126167
if not os.path.exists(".git"):
127168
sys.stderr.write("Skipping git ls-files check, no .git dir")

0 commit comments

Comments
 (0)