summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass')
-rw-r--r--meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass b/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
index 1ed1cd77..b4de5ee1 100644
--- a/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
+++ b/meta-xilinx-core/classes/image-types-xilinx-qemu.bbclass
@@ -7,9 +7,9 @@
7 7
8CONVERSIONTYPES:append = " qemu-sd qemu-sd-fatimg" 8CONVERSIONTYPES:append = " qemu-sd qemu-sd-fatimg"
9CONVERSION_CMD:qemu-sd () { 9CONVERSION_CMD:qemu-sd () {
10 cp ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd 10 cp ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type} ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type}.qemu-sd
11 # Get the wic.qemu-sd file size 11 # Get the wic.qemu-sd file size
12 file_size=`stat -c '%s' ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd` 12 file_size=`stat -c '%s' ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type}.qemu-sd`
13 powerof2=1 13 powerof2=1
14 file_size=${file_size%.*} 14 file_size=${file_size%.*}
15 # Get the next power of 2 value for the image size value 15 # Get the next power of 2 value for the image size value
@@ -17,7 +17,7 @@ CONVERSION_CMD:qemu-sd () {
17 powerof2=$(expr $powerof2 \* 2) 17 powerof2=$(expr $powerof2 \* 2)
18 done 18 done
19 # Resize the image using qemu-img 19 # Resize the image using qemu-img
20 qemu-img resize -f raw ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd ${powerof2} 20 qemu-img resize -f raw ${IMGDEPLOYDIR}/${IMAGE_NAME}.${type}.qemu-sd ${powerof2}
21} 21}
22 22
23BOOT_VOLUME_ID ?= "BOOT" 23BOOT_VOLUME_ID ?= "BOOT"