To make sure that when S directory is changed, the spdx info of the package will not miss.
Signed-off-by: leimaohui <[email protected]> --- meta/classes/spdx.bbclass | 2 +- meta/conf/bitbake.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass index 55ce3af..aeac04c 100644 --- a/meta/classes/spdx.bbclass +++ b/meta/classes/spdx.bbclass @@ -24,7 +24,7 @@ python do_spdx () { info = {} info['workdir'] = (d.getVar('WORKDIR', True) or "") - info['sourcedir'] = (d.getVar('S', True) or "") + info['sourcedir'] = (d.getVar('SPDX_S', True) or "") info['pn'] = (d.getVar( 'PN', True ) or "") info['pv'] = (d.getVar( 'PV', True ) or "") info['src_uri'] = (d.getVar( 'SRC_URI', True ) or "") diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 468b175..b35c0cd 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -340,6 +340,7 @@ T = "${WORKDIR}/temp" D = "${WORKDIR}/image" S = "${WORKDIR}/${BP}" B = "${S}" +SPDX_S = "${S}" STAGING_DIR = "${TMPDIR}/sysroots" -- 1.9.1 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
