|
@@ -291,8 +291,12 @@ endef
|
|
|
# Convert a raw image into a $1 type image.
|
|
# Convert a raw image into a $1 type image.
|
|
|
# E.g. | qemu-image vdi
|
|
# E.g. | qemu-image vdi
|
|
|
define Build/qemu-image
|
|
define Build/qemu-image
|
|
|
- qemu-img convert -f raw -O $1 $@ [email protected]
|
|
|
|
|
- @mv [email protected] $@
|
|
|
|
|
|
|
+ if command -v qemu-img; then \
|
|
|
|
|
+ qemu-img convert -f raw -O $1 $@ [email protected]; \
|
|
|
|
|
+ mv [email protected] $@; \
|
|
|
|
|
+ else \
|
|
|
|
|
+ echo "WARNING: Install qemu-img to create VDI/VMDK images" >&2; exit 1; \
|
|
|
|
|
+ fi
|
|
|
endef
|
|
endef
|
|
|
|
|
|
|
|
define Build/qsdk-ipq-factory-nand
|
|
define Build/qsdk-ipq-factory-nand
|