aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-08-10 10:39:49 +0100
committerJoshua Lock <joshua.g.lock@intel.com>2016-08-10 10:41:52 +0100
commit4386c44bfd6b6b1d07102421aa614ea01b1ef178 (patch)
tree0117c736b9ab205421c3630659458512d5bdf4d0
parent10c18248c7fd8f1d8974b1da5257d4aee8f1b6d4 (diff)
downloadmeta-swupd-4386c44bfd6b6b1d07102421aa614ea01b1ef178.tar.gz
meta-swupd-4386c44bfd6b6b1d07102421aa614ea01b1ef178.tar.bz2
meta-swupd-4386c44bfd6b6b1d07102421aa614ea01b1ef178.zip
swupd-image: ensure pseudo is staged when required
Ensure pseudo is available in the sysroot for all tasks which have the fakeroot flag by adding virtual/fakeroot-native:do_populate_sysroot to the depends of the tasks. Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
-rw-r--r--classes/swupd-image.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/swupd-image.bbclass b/classes/swupd-image.bbclass
index 08ab3f5..9272626 100644
--- a/classes/swupd-image.bbclass
+++ b/classes/swupd-image.bbclass
@@ -190,6 +190,7 @@ fakeroot do_rootfs_append () {
for bundle in bundles:
swupd.bundles.create_bundle_manifest(d, bundle)
}
+do_rootfs[depends] += "virtual/fakeroot-native:do_populate_sysroot"
do_image_append () {
import swupd.rootfs
@@ -243,6 +244,7 @@ fakeroot python do_stage_swupd_inputs () {
}
addtask stage_swupd_inputs after do_image before do_swupd_update
do_stage_swupd_inputs[dirs] = "${SWUPDIMAGEDIR} ${SWUPDMANIFESTDIR} ${DEPLOY_DIR_SWUPD}/maps/"
+do_stage_swupd_inputs[depends] += "virtual/fakeroot-native:do_populate_sysroot"
SSTATETASKS += "do_stage_swupd_inputs"
do_stage_swupd_inputs[sstate-inputdirs] = "${SWUPDIMAGEDIR}/${OS_VERSION} ${SWUPDMANIFESTDIR}"
@@ -360,6 +362,7 @@ fakeroot python do_fetch_swupd_inputs () {
}
addtask fetch_swupd_inputs before do_swupd_update
do_fetch_swupd_inputs[dirs] = "${DEPLOY_DIR_SWUPD}/maps ${DEPLOY_DIR_SWUPD}/image"
+do_fetch_swupd_inputs[depends] += "virtual/fakeroot-native:do_populate_sysroot"
SWUPD_FORMAT ??= "3"
fakeroot do_swupd_update () {