diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-08-31 14:02:51 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 23:45:53 +0100 |
commit | 180eebf97663824853d40379299868aa120a4319 (patch) | |
tree | 678f52358b74eb0f241377e6db53de024d798fca | |
parent | ea1d3ff7b5e02ee85b68b13e0be4810279a3afb7 (diff) | |
download | poky-180eebf97663824853d40379299868aa120a4319.tar.gz |
sstate.bbclass: skip packaging if SSTATE_SKIP_CREATION is set
SSTATE_SKIP_CREATION variable will be used to skip creation of
sstate .tgz files. It makes sense for image creation tasks as
tarring images and keeping them in sstate would consume a lot of
disk space.
(From OE-Core rev: 7e821ccd221916ae8482b9113df2de704f4a99a4)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/sstate.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 249692896a..0f0baebe5b 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -566,6 +566,8 @@ def sstate_package(ss, d): | |||
566 | for state in ss['dirs']: | 566 | for state in ss['dirs']: |
567 | if not os.path.exists(state[1]): | 567 | if not os.path.exists(state[1]): |
568 | continue | 568 | continue |
569 | if d.getVar('SSTATE_SKIP_CREATION', True) == '1': | ||
570 | continue | ||
569 | srcbase = state[0].rstrip("/").rsplit('/', 1)[0] | 571 | srcbase = state[0].rstrip("/").rsplit('/', 1)[0] |
570 | for walkroot, dirs, files in os.walk(state[1]): | 572 | for walkroot, dirs, files in os.walk(state[1]): |
571 | for file in files: | 573 | for file in files: |