Skip to contentSkip to conversation

spdx.bbclass:Add SPDX-specific source tree variable.

PATCH New leimaohui 1 participant 5 messages Sep 23, 2014

lore
Share & tools
lore

leimaohui

author
#0 lore raw

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.

---
 meta/classes/spdx.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/spdx.bbclass +3 -1
index 55ce3af..27169f0 100644
@@ -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
author
#1 lore raw

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}.

---
 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
index 057c9d8..e8b814e 100644
@@ -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
author
#2 lore raw

PATCH 3/5 db_6.0.30: modify SPDX_S variable

In reply to leimaohui

Modify SPDX_S to the source tree of db-6.0.30 instead of ${S}.

---
 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
index 9fc4a30..47fb296 100644
@@ -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
author
#3 lore raw

PATCH 4/5 icu.inc: modify SPDX_S variable

In reply to leimaohui

Modify SPDX_S to the source tree of icu instead of ${S}.

---
 meta/recipes-support/icu/icu.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/icu/icu.inc +1 -0
index 7732107..15d002d 100644
@@ -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
author
#4 lore raw

PATCH 5/5 squashfs-tools_4.3: modify SPDX_S variable

In reply to leimaohui

Modify SPDX_S to the source tree of squashfs instead of ${S}.

---
 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
index e3783fd..d36f0fe 100644
@@ -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