spdx.bbclass:Add SPDX-specific source tree variable.
PATCH 1/5 spdx.bbclass:Add SPDX-specific source tree variable.
Add SPDX-specific source tree variable for recipes where $S is a subdirectory of the source tree.
Signed-off-by leimaohui <[email protected]>
--- meta/classes/spdx.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/spdx.bbclass +3 -1
@@ -18,13 +18,15 @@ SPDXOUTPUTDIR = "${WORKDIR}/spdx_output_dir" SPDXSSTATEDIR = "${WORKDIR}/spdx_sstate_dir" +SPDX_S ?= "${S}" + python do_spdx () { import os, sys import json 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 "")
Signature · 1 line
1.9.1
PATCH 2/5 db_5.3.28: modify SPDX_S variable
Because $S is set to sub-directory of db-5.3.28.
So modify SPDX_S to the source tree of db-5.3.28 instead of ${S}.
Signed-off-by leimaohui <[email protected]>
--- meta/recipes-support/db/db_5.3.28.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/db/db_5.3.28.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
PATCH 3/5 db_6.0.30: modify SPDX_S variable
In reply to leimaohuiModify SPDX_S to the source tree of db-6.0.30 instead of ${S}.
Signed-off-by leimaohui <[email protected]>
--- 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
PATCH 4/5 icu.inc: modify SPDX_S variable
In reply to leimaohuiModify SPDX_S to the source tree of icu instead of ${S}.
Signed-off-by leimaohui <[email protected]>
--- meta/recipes-support/icu/icu.inc | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/icu/icu.inc +1 -0
@@ -7,6 +7,7 @@ DEPENDS = "icu-native" DEPENDS_class-native = "" S = "${WORKDIR}/icu/source" +SPDX_S = "${WORKDIR}/icu" STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" PARALLEL_MAKE = ""
Signature · 1 line
1.9.1
PATCH 5/5 squashfs-tools_4.3: modify SPDX_S variable
In reply to leimaohuiModify SPDX_S to the source tree of squashfs instead of ${S}.
Signed-off-by leimaohui <[email protected]>
--- meta/recipes-devtools/squashfs-tools/squashfs-tools_4.3.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/squashfs-tools/squashfs-tools_4.3.bb +1 -0
@@ -19,6 +19,7 @@ SRC_URI[lzma.md5sum] = "29d5ffd03a5a3e51aef6a74e9eafb759" SRC_URI[lzma.sha256sum] = "c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e0880aa0fa1e" S = "${WORKDIR}/squashfs${PV}/squashfs-tools" +SPDX_S = "${WORKDIR}/squashfs${PV}" # EXTRA_OEMAKE is typically: -e MAKEFLAGS= # the -e causes problems as CFLAGS is modified in the Makefile, so
Signature · 1 line
1.9.1