[x86_64]: generate esxi compatible vmdks, too
authorImre Kaloz <kaloz@openwrt.org>
Fri, 11 Apr 2014 10:19:26 +0000 (10:19 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Fri, 11 Apr 2014 10:19:26 +0000 (10:19 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 40452

target/linux/x86_64/image/Makefile

index 1514956046627ac7ae3e63dd082c4363a8b98fdd..c2f1ce9309190e7c233ac819f8e1b5b112a8863d 100644 (file)
@@ -148,6 +148,10 @@ ifneq ($(CONFIG_VMDK_IMAGES),)
                qemu-img convert -f raw -O vmdk -o adapter_type=lsilogic \
                        $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img \
                        $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).vmdk
+               rm $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1)-esxi.vmdk || true
+               qemu-img convert -f raw -O vmdk -o adapter_type=lsilogic,subformat=monolithicFlat \
+                       $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img \
+                       $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1)-esxi.vmdk
     endif
   endef
 endif