From f2c62d88d753caa4099c32cb4a47e80e0570fd64 Mon Sep 17 00:00:00 2001 From: Alexander Kanevskiy Date: Fri, 13 May 2016 17:35:44 +0300 Subject: [PATCH] meta-ostro-bsp: image_types_edison: Use correct image name in PhoneFlash tool Include correct image name in meta-data file used by Windows PhoneFlash tool. Fixes: ostro-os issue #62 (From meta-ostro-bsp rev: de634fdbc44d5bb46e4bc0406f7e383a4419a8ac) Signed-off-by: Alexander Kanevskiy --- .../meta-edison-bsp/classes/image_types_edison.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-ostro-bsp/meta-edison-bsp/classes/image_types_edison.bbclass b/meta-ostro-bsp/meta-edison-bsp/classes/image_types_edison.bbclass index 3ae7cacbd8a..f4bd96ac756 100644 --- a/meta-ostro-bsp/meta-edison-bsp/classes/image_types_edison.bbclass +++ b/meta-ostro-bsp/meta-edison-bsp/classes/image_types_edison.bbclass @@ -105,9 +105,10 @@ IMAGE_CMD_toflash () { install ${DEPLOY_DIR_IMAGE}/flashall/helper/helper.html ${WORKDIR}/toFlash/helper/ install ${DEPLOY_DIR_IMAGE}/flashall/helper/images/*.png ${WORKDIR}/toFlash/helper/images/ - # update image name inside flashall.sh + # update image names inside flashing tools sed -e "s/^IMAGE_NAME=.\+$/IMAGE_NAME=\"${IMAGE_BASENAME}\"/" -i ${WORKDIR}/toFlash/flashall.sh sed -e "s/^set IMAGE_NAME=.\+$/set IMAGE_NAME=${IMAGE_BASENAME}/" -i ${WORKDIR}/toFlash/flashall.bat + sed -e "s/\"edison-image-edison\./\"${IMAGE_BASENAME}-edison./" -i ${WORKDIR}/toFlash/FlashEdison.json # generate a formatted list of all packages included in the image awk '{print $1 " " $3}' ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest > ${WORKDIR}/toFlash/package-list.txt