Skip to content

Commit

Permalink
feat(kbuild.py): Download linux-firmware from kci infra
Browse files Browse the repository at this point in the history
git.kernel.org sometimes unreachable or Azure k8s issue,
so lets keep at least firmware locally on Azure storage.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Feb 17, 2025
1 parent aa8a8c7 commit 2bb7854
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kernelci/kbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,12 @@ def _fetch_firmware(self):
TODO: Implement firmware commit id meta/settings
'''
self.startjob("fetch_firmware")
# self.addcmd(f"git clone {FW_GIT} --depth 1", False)
self.addcmdretry(f"git clone {FW_GIT} --depth 1", 10)
#self.addcmdretry(f"git clone {FW_GIT} --depth 1", 10)
# This file available https://storage.kernelci.org/linux-firmware.tar.gz
# we download it there for better reliability
self.addcmd("wget -c -t 10 --retry-on-host-error " +
"https://storage.kernelci.org/linux-firmware.tar.gz -O linux-firmware.tar.gz")
self.addcmd("tar -xzf linux-firmware.tar.gz")
self.addcmd("cd linux-firmware")
self.addcmd("./copy-firmware.sh " + self._firmware_dir)
self.addcmd("cd ..")
Expand Down

0 comments on commit 2bb7854

Please sign in to comment.