aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-11-07 09:35:01 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2016-12-08 14:12:56 +0100
commit3ffca0b60191ca5b042f03cfc824b4905a287322 (patch)
tree1856427060f5a7e15194fbd0f79dcd23aeebf05a
parent5afda85832208a87ef228c7d327358ea6950f1c6 (diff)
downloadmeta-swupd-3ffca0b60191ca5b042f03cfc824b4905a287322.tar.gz
meta-swupd-3ffca0b60191ca5b042f03cfc824b4905a287322.tar.bz2
meta-swupd-3ffca0b60191ca5b042f03cfc824b4905a287322.zip
swupd-image.bbclass: per-OS_VERSION swupd database
It is better to start each OS_VERSION build with a clean pseudo database because then performance is expected to be better. Only relevant for repeated local builds; CI builds already start from scratch. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
-rw-r--r--classes/swupd-image.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/swupd-image.bbclass b/classes/swupd-image.bbclass
index d422af1..e849f56 100644
--- a/classes/swupd-image.bbclass
+++ b/classes/swupd-image.bbclass
@@ -363,8 +363,11 @@ END
echo "" >> ${GROUPS_INI}
done
- # Activate pseudo for all following commands explicitly.
- PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${DEPLOY_DIR_SWUPD}/pseudo ${FAKEROOTCMD}"
+ # Activate pseudo explicitly for all following commands which need it.
+ # We use a database that is specific to the OS_VERSION, because that
+ # avoids (potential?) performance degradation that might occur when
+ # the same database is used for a growing number of files.
+ PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${PSEUDO_LOCALSTATEDIR}/meta-swupd-${OS_VERSION} ${FAKEROOTCMD}"
# Unpack the input rootfs dir(s) for use with the swupd tools. Might have happened
# already in a previous run of this task.