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-01 22:24:24 +0100 |
commit | c3adf8c6f33a90f3185c4b4105d0dba6ca10b26f (patch) | |
tree | 919c906e2ab1770f2ec8895c8ef714515f1e86fa | |
parent | 31310acf6ec2abd14a673ed3bc2e802ca4954f10 (diff) | |
download | openembedded-core-contrib-c3adf8c6f33a90f3185c4b4105d0dba6ca10b26f.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.
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): for state in ss['dirs']: if not os.path.exists(state[1]): continue + if d.getVar('SSTATE_SKIP_CREATION', True) == '1': + continue srcbase = state[0].rstrip("/").rsplit('/', 1)[0] for walkroot, dirs, files in os.walk(state[1]): for file in files: |