diff options
author | Richard Purdie <richard@openedhand.com> | 2006-08-29 22:12:42 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-08-29 22:12:42 +0000 |
commit | b1d72c57627e19cde254177f08a3a0f879a94803 (patch) | |
tree | c31e30e31029600cceb4998449a01e20dc9199e1 /meta | |
parent | 0426fad344c83151dfe8d454d4900310e7698cac (diff) | |
download | poky-b1d72c57627e19cde254177f08a3a0f879a94803.tar.gz |
image.bbclass: Add symlinks to the latest images for a given machine
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@677 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_ipk.bbclass | 3 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/image_ipk.bbclass b/meta/classes/image_ipk.bbclass index 18476b9aff..d5f21c5809 100644 --- a/meta/classes/image_ipk.bbclass +++ b/meta/classes/image_ipk.bbclass | |||
@@ -53,6 +53,9 @@ fakeroot do_rootfs () { | |||
53 | else | 53 | else |
54 | bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}" | 54 | bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}" |
55 | fi | 55 | fi |
56 | |||
57 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.* | ||
58 | ln -s ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type | ||
56 | done | 59 | done |
57 | 60 | ||
58 | ${IMAGE_POSTPROCESS_COMMAND} | 61 | ${IMAGE_POSTPROCESS_COMMAND} |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 2e3cb0f980..e393ac29b7 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -174,6 +174,7 @@ DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images" | |||
174 | IMAGE_ROOTFS = "${TMPDIR}/rootfs" | 174 | IMAGE_ROOTFS = "${TMPDIR}/rootfs" |
175 | IMAGE_BASENAME = "rootfs" | 175 | IMAGE_BASENAME = "rootfs" |
176 | IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}" | 176 | IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}" |
177 | IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" | ||
177 | IMAGE_CMD = "" | 178 | IMAGE_CMD = "" |
178 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \ | 179 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \ |
179 | --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ | 180 | --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ |