From f7dfb93703df0d2c27fd774b71ca16fb9b6bc9a8 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Thu, 30 Jan 2025 20:55:57 +0200 Subject: [PATCH] feat(kbuild): Add vmlinux to artifacts Fixes: https://github.com/kernelci/kernelci-project/issues/509 Signed-off-by: Denys Fedoryshchenko --- kernelci/kbuild.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernelci/kbuild.py b/kernelci/kbuild.py index 8f31648d46..7c9c7917f8 100644 --- a/kernelci/kbuild.py +++ b/kernelci/kbuild.py @@ -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): @@ -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 )