aboutsummaryrefslogtreecommitdiffstats
path: root/classes/image.bbclass
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-01-04 04:01:57 +0000
committerKhem Raj <raj.khem@gmail.com>2011-01-07 14:42:35 -0800
commitffdf56431d26ce54377d672764a8bba61dcaf853 (patch)
treeda771d0e00946cb13073b9af72c584087c360d32 /classes/image.bbclass
parent0281e0eaae4abec8c5cce9d2bcc5264b8b9034f1 (diff)
downloadopenembedded-ffdf56431d26ce54377d672764a8bba61dcaf853.tar.gz
image.bbclass: rm symlink destination via ln
Rather than rm'ing the destination-file manually, do ln -f Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r--classes/image.bbclass3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 7c1f3e1df2..db13dd0aba 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -140,8 +140,7 @@ def get_imagecmds(d):
cmd = "\t#Code for image type " + type + "\n"
cmd += "\t${IMAGE_CMD_" + type + "}\n"
cmd += "\tcd ${DEPLOY_DIR_IMAGE}/\n"
- cmd += "\trm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}." + type + "\n"
- cmd += "\tln -s ${IMAGE_NAME}.rootfs." + type + " ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}." + type + "\n\n"
+ cmd += "\tln -fs ${IMAGE_NAME}.rootfs." + type + " ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}." + type + "\n\n"
cmds += bb.data.expand(cmd, localdata)
return cmds