Skip to content

Commit

Permalink
fix(kernel_crawler): support debian rpi.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Dec 15, 2023
1 parent 5e01bc2 commit a15ee82
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kernel_crawler/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def to_driverkit_config(self, release, deps):
headers = []
headers_rt = []
headers_cloud = []
# Magic to obtain `rt`, `cloud` and normal headers:
headers_rpi = []
# Magic to obtain `rt`, `cloud`, `rpi` and normal headers:
# List is like this one:
# "http://security.debian.org/pool/updates/main/l/linux/linux-headers-4.19.0-23-common_4.19.269-1_all.deb",
# "http://security.debian.org/pool/updates/main/l/linux/linux-headers-4.19.0-23-rt-amd64_4.19.269-1_amd64.deb",
Expand All @@ -78,18 +79,23 @@ def to_driverkit_config(self, release, deps):
else:
headers.append(dep)
headers_cloud.append(dep)
headers_rpi.append(dep)
else:
if dep.find("-rt") != -1:
headers_rt.append(dep)
elif dep.find("-cloud") != -1:
headers_cloud.append(dep)
elif dep.find("-rpi") != -1:
headers_rpi.append(dep)
else:
headers.append(dep)
if dep.find("kbuild") != -1:
headers.append(dep)
headers_rt.append(dep)
headers_cloud.append(dep)
headers_rpi.append(dep)

return [repo.DriverKitConfig(release + "-" + self.arch, "debian", headers),
repo.DriverKitConfig(release + "-rt-" + self.arch, "debian", headers_rt),
repo.DriverKitConfig(release + "-cloud-" + self.arch, "debian", headers_cloud)]
repo.DriverKitConfig(release + "-cloud-" + self.arch, "debian", headers_cloud),
repo.DriverKitConfig(release + "-rpi-" + self.arch, "debian", headers_rpi),]

0 comments on commit a15ee82

Please sign in to comment.