From fd4b7ea9473e18060e61cff670f3cabfd074eae9 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 12 Feb 2014 17:08:56 +0200 Subject: Fix emulator hdd image building Remove nostamp so that symbolic link is not updated, when boot-directdisk has not been updated. Otherwise we ended up with broken link. Change-Id: I27a51047e74861f034fbf3f15f9cf29fd20b142b Reviewed-by: Samuli Piippo --- classes/image-hdd.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'classes/image-hdd.bbclass') diff --git a/classes/image-hdd.bbclass b/classes/image-hdd.bbclass index 8dac725..46146b7 100644 --- a/classes/image-hdd.bbclass +++ b/classes/image-hdd.bbclass @@ -34,7 +34,9 @@ SYSLINUX_DEFAULT_CONSOLE = "console=ttyS0,115200" inherit image_types boot-directdisk create_hdd_image () { - ln -fs ${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd + cd ${DEPLOY_DIR_IMAGE} + rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd + ln -s ${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hdd } python do_hddimg() { @@ -42,4 +44,3 @@ python do_hddimg() { } addtask hddimg after do_bootdirectdisk before do_build -do_hddimg[nostamp] = "1" -- cgit v1.2.3-54-g00ecf