aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2019-08-29 12:49:39 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2019-08-29 12:49:39 +0900
commitab4ba8d61a379960788290b3c540e072f18485b3 (patch)
tree431bb10287c7a73874a7cc47692a0f98b378e814
parent11f8fdcd4dadf4dfe9fb2ee69296efcfb2ee1cb8 (diff)
downloadmeta-spdxscanner-ab4ba8d61a379960788290b3c540e072f18485b3.tar.gz
meta-spdxscanner-ab4ba8d61a379960788290b3c540e072f18485b3.tar.bz2
meta-spdxscanner-ab4ba8d61a379960788290b3c540e072f18485b3.zip
Deleted redundant directory.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--classes/spdx-common.bbclass19
1 files changed, 4 insertions, 15 deletions
diff --git a/classes/spdx-common.bbclass b/classes/spdx-common.bbclass
index 762437c..5a12cab 100644
--- a/classes/spdx-common.bbclass
+++ b/classes/spdx-common.bbclass
@@ -1,17 +1,4 @@
-# This class integrates real-time license scanning, generation of SPDX standard
-# output and verifiying license info during the building process.
-# It is a combination of efforts from the OE-Core, SPDX and DoSOCSv2 projects.
-#
-# For more information on DoSOCSv2:
-# https://github.com/DoSOCSv2
-#
-# For more information on SPDX:
-# http://www.spdx.org
-#
-# Note:
-# 1) Make sure fossdriver has beed installed in your host
-# 2) By default,spdx files will be output to the path which is defined as[SPDX_DEPLOY_DIR]
-# in ./meta/conf/spdx-dosocs.conf.
+# This class supplys common functions.
SPDXEPENDENCY += "${PATCHTOOL}-native:do_populate_sysroot"
@@ -55,7 +42,9 @@ def spdx_create_tarball(d, srcdir, suffix, ar_outdir):
# work-shared location. Use os.path.realpath to make sure
# that we archive the actual directory and not just the link.
srcdir = os.path.realpath(srcdir)
-
+ build_dir = os.path.join(srcdir, "build")
+ if os.path.exists(build_dir):
+ shutil.rmtree(build_dir)
bb.utils.mkdirhier(ar_outdir)
if suffix:
filename = '%s-%s.tar.gz' % (d.getVar('PF'), suffix)