summaryrefslogtreecommitdiff
path: root/classes/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-03-05 20:02:32 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-03-05 20:02:32 +0000
commitc2308c2dea77248652592b102358f67ba646a2fd (patch)
tree4f9145c0b19bdf17f6d393e69602d619f0792e8f /classes/image.bbclass
parent77fa5012bfd4b6a1a3f73d66ff77fcb09559dbfe (diff)
image.bbclass: Create symlink to latest image generated. Also add dependency on populate staging for do_rootfs (both from poky)
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r--classes/image.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 69d7fb2e9b..83aa80a97e 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -4,7 +4,7 @@ PACKAGES = ""
# We need to recursively follow RDEPENDS and RRECOMMENDS for images
BUILD_ALL_DEPS = "1"
-do_rootfs[recrdeptask] = "do_package_write do_deploy"
+do_rootfs[recrdeptask] = "do_package_write do_deploy do_populate_staging"
# Images are generally built explicitly, do not need to be part of world.
EXCLUDE_FROM_WORLD = "1"
@@ -91,6 +91,10 @@ fakeroot do_rootfs () {
else
bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}"
fi
+
+ cd ${DEPLOY_DIR_IMAGE}/
+ rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*
+ ln -s ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
done
${IMAGE_POSTPROCESS_COMMAND}