Skip to content

Commit

Permalink
feat(kbuild): Add vmlinux to artifacts
Browse files Browse the repository at this point in the history
Fixes: kernelci/kernelci-project#509

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Jan 31, 2025
1 parent ad230e5 commit f7dfb93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernelci/kbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ def _package_kimage(self):
self.addcmd("cp arch/" + self._arch + "/boot/" + img + " ../artifacts", False)
# add image to artifacts relative to artifacts dir
self._artifacts.append(img)
# https://github.com/kernelci/kernelci-project/issues/509
self.addcmd("cp vmlinux ../artifacts", False)
self._artifacts.append("vmlinux")
self.addcmd("cd ..")

def _package_modules(self):
Expand Down Expand Up @@ -852,6 +855,12 @@ def upload_artifacts(self):
dst_filename = artifact + ".gz"
else:
dst_filename = artifact
# if it is vmlinux - use xz compression
if artifact == "vmlinux":
os.system(f"xz -k {artifact_path}")
artifact_path = artifact_path + ".xz"
compressed_file = True
dst_filename = artifact + ".xz"
stored_url = storage.upload_single(
(artifact_path, dst_filename), root_path
)
Expand Down

0 comments on commit f7dfb93

Please sign in to comment.