spdx:It is necessary to define source directory for spdx.
PATCH 1/2 spdx:It is necessary to define source directory for spdx.
To make sure that when S directory is changed, the spdx info of the package will not miss.
--- meta/classes/spdx.bbclass | 2 +- meta/conf/bitbake.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
meta/classes/spdx.bbclass +1 -1
@@ -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 "")
meta/conf/bitbake.conf +1 -0
@@ -340,6 +340,7 @@ T = "${WORKDIR}/temp" D = "${WORKDIR}/image" S = "${WORKDIR}/${BP}" B = "${S}" +SPDX_S = "${S}" STAGING_DIR = "${TMPDIR}/sysroots"
Signature · 1 line
1.9.1
PATCH 2/2 spdx:Correct SPDX_S directory.
Otherwise,the license info of the db-6.0.30 will miss.
--- meta/recipes-support/db/db_6.0.30.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/db/db_6.0.30.bb +1 -0
@@ -42,6 +42,7 @@ PROVIDES += "${VIRTUAL_NAME}" # persuades bitbake to go to the right place S = "${WORKDIR}/db-${PV}/dist" B = "${WORKDIR}/db-${PV}/build_unix" +SPDX_S = "${WORKDIR}/db-${PV}" # The executables go in a separate package - typically there # is no need to install these unless doing real database
Signature · 1 line
1.9.1
Quoted 1 line · leimaohui
To make sure that when S directory is changed, the spdx info of the package will not miss.
It took me a few minutes and looking at the other patches to understand what this is doing. A better summary would be:
"Add SPDX-specific source tree variable for recipes where $S is a subdirectory of the source tree"
To avoid polluting bitbake.bbclass this might work with SPDX_S ?= "${S}" in spdx.bbclass.
Ross
Quoted 7 lines · On 22 September 2014 10:31, Burton, Ross [mailto:[email protected]] wrote:
Quoted 1 line
To make sure that when S directory is changed, the spdx info of the package
will not miss.
It took me a few minutes and looking at the other patches to understand what this is doing.
Sorry,my summary is not easy to understand.
Quoted 6 lines
A better summary would be:
"Add SPDX-specific source tree variable for recipes where $S is a subdirectory of the source tree"To avoid polluting bitbake.bbclass this might work with
SPDX_S?= "${S}" in spdx.bbclass.
Thank you for your response.I will modify my patches ,and then re submit them later.
Thanks,
Lei Maohui