Skip to content

Commit eb2435e

Browse files
committed
linux-firmware: move QCM6490, QCS8300 and SA8775P firmware packages away
Patch linux-firmware packages in order to remove the conflict between the files provided by the recipe and the tip versions of the firmware (to be added in the next commits). Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent fe356b3 commit eb2435e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
REMOVE_SOCS = " \
2+
qcm6490 \
3+
qcs8300 \
4+
sa8775p \
5+
"
6+
REMOVE_PACKAGES = " \
7+
audio \
8+
compute \
9+
generalpurpose \
10+
"
11+
12+
python() {
13+
pkgs = d.getVar('PACKAGES').split()
14+
newpkgs = []
15+
for soc in d.getVar('REMOVE_SOCS').split():
16+
for pkg in d.getVar('REMOVE_PACKAGES').split():
17+
name = 'linux-firmware-qcom-%s-%s' % (soc, pkg)
18+
x_name = 'x-' + name
19+
if name in pkgs:
20+
pkgs.remove(name)
21+
newpkgs.append(x_name)
22+
files = d.getVar('FILES:%s' % name, False)
23+
d.setVar('FILES:%s' % x_name, files)
24+
files = d.getVar('LICENSE:%s' % name)
25+
d.setVar('LICENSE:%s' % x_name, files)
26+
files = d.getVar('RDEPENDS:%s' % name)
27+
d.setVar('RDEPENDS:%s' % x_name, files)
28+
newpkgs.extend(pkgs)
29+
d.setVar('PACKAGES', ' '.join(newpkgs))
30+
}
31+
32+
python populate_packages:append() {
33+
newpkgs = d.getVar('RRECOMMENDS:linux-firmware').split()
34+
newpkgs = filter(lambda x: not x.startswith('x-'), newpkgs)
35+
d.setVar('RRECOMMENDS:linux-firmware', ' '.join(newpkgs))
36+
}

0 commit comments

Comments
 (0)