]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate.bbclass: skip packaging if SSTATE_SKIP_CREATION is set
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 31 Aug 2016 11:02:51 +0000 (14:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Sep 2016 22:45:45 +0000 (23:45 +0100)
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>
meta/classes/sstate.bbclass

index 249692896aa557a99bb0e13d4f0a9d469af5b38e..0f0baebe5bae17131dd2f88d88aca77d3a7d9fa7 100644 (file)
@@ -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: