]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
create-spdx-2.2.bbclass: use hardlink as well
authorMartin Jansa <martin.jansa@gmail.com>
Mon, 13 Nov 2023 12:20:43 +0000 (13:20 +0100)
committerMartin Jansa <martin.jansa@gmail.com>
Wed, 31 Jan 2024 10:07:05 +0000 (11:07 +0100)
[YOCTO #12937]

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
meta/classes/create-spdx-2.2.bbclass

index 486efadba96be815bcf99e5b15aadb75e2412a94..0ebe14f177804bd9d1c1ad4d4aa319546787a032 100644 (file)
@@ -967,7 +967,7 @@ python image_combine_spdx() {
         if image_link_name:
             link = imgdeploydir / (image_link_name + suffix)
             if link != target_path:
-                link.symlink_to(os.path.relpath(target_path, link.parent))
+                os.link(target_path, link)
 
     spdx_tar_path = imgdeploydir / (image_name + ".spdx.tar.zst")
     make_image_link(spdx_tar_path, ".spdx.tar.zst")