From cf63b1c388ace1f7cf3dc03d867580e2657455a5 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Mon, 3 Jun 2019 19:05:12 +0200 Subject: [PATCH] Fix VHDX images --- patches/images.patch | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/patches/images.patch b/patches/images.patch index 62e7cc4e..e8702a98 100644 --- a/patches/images.patch +++ b/patches/images.patch @@ -14,14 +14,14 @@ config TARGET_IMAGES_PAD bool "Pad images to filesystem size (for JFFS2)" depends on GRUB_IMAGES ---- a/target/linux/x86/image/Makefile.orig 2019-06-02 16:35:18.593501507 +0200 -+++ b/target/linux/x86/image/Makefile 2019-06-02 16:39:23.242404445 +0200 -@@ -141,6 +141,15 @@ +--- target/linux/x86/image/Makefile.orig 2019-06-03 14:32:39.094356089 +0200 ++++ target/linux/x86/image/Makefile 2019-06-03 19:04:23.875965073 +0200 +@@ -143,6 +143,15 @@ endef endif +ifneq ($(CONFIG_VHDX_IMAGES),) -+ define Image/Build/hyperv ++ define Image/Build/vhdx + rm $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).vhdx || true + qemu-img convert -f raw -O vhdx \ + $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img \ @@ -32,3 +32,11 @@ define Image/Build/gzip gzip -f9n $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img gzip -f9n $(BIN_DIR)/$(IMG_PREFIX)-rootfs-$(1).img +@@ -175,6 +184,7 @@ + $(call Image/Build/grub2,$(1)) + $(call Image/Build/vdi,$(1)) + $(call Image/Build/vmdk,$(1)) ++ $(call Image/Build/vhdx,$(1)) + $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-rootfs-$(1).img + else + $(CP) $(KDIR)/root.iso $(BIN_DIR)/$(IMG_PREFIX).iso