summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/create-spdx-2.2.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass
index af6afcc653..f0513af083 100644
--- a/meta/classes/create-spdx-2.2.bbclass
+++ b/meta/classes/create-spdx-2.2.bbclass
@@ -795,6 +795,7 @@ def spdx_get_src(d):
795 bb.build.exec_func('do_unpack', d) 795 bb.build.exec_func('do_unpack', d)
796 # Copy source of kernel to spdx_workdir 796 # Copy source of kernel to spdx_workdir
797 if is_work_shared_spdx(d): 797 if is_work_shared_spdx(d):
798 share_src = d.getVar('WORKDIR')
798 d.setVar('WORKDIR', spdx_workdir) 799 d.setVar('WORKDIR', spdx_workdir)
799 d.setVar('STAGING_DIR_NATIVE', spdx_sysroot_native) 800 d.setVar('STAGING_DIR_NATIVE', spdx_sysroot_native)
800 src_dir = spdx_workdir + "/" + d.getVar('PN')+ "-" + d.getVar('PV') + "-" + d.getVar('PR') 801 src_dir = spdx_workdir + "/" + d.getVar('PN')+ "-" + d.getVar('PV') + "-" + d.getVar('PR')
@@ -802,8 +803,8 @@ def spdx_get_src(d):
802 if bb.data.inherits_class('kernel',d): 803 if bb.data.inherits_class('kernel',d):
803 share_src = d.getVar('STAGING_KERNEL_DIR') 804 share_src = d.getVar('STAGING_KERNEL_DIR')
804 cmd_copy_share = "cp -rf " + share_src + "/* " + src_dir + "/" 805 cmd_copy_share = "cp -rf " + share_src + "/* " + src_dir + "/"
805 cmd_copy_kernel_result = os.popen(cmd_copy_share).read() 806 cmd_copy_shared_res = os.popen(cmd_copy_share).read()
806 bb.note("cmd_copy_kernel_result = " + cmd_copy_kernel_result) 807 bb.note("cmd_copy_shared_result = " + cmd_copy_shared_res)
807 808
808 git_path = src_dir + "/.git" 809 git_path = src_dir + "/.git"
809 if os.path.exists(git_path): 810 if os.path.exists(git_path):