aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorOldřich Jedlička <oldium.pro@gmail.com>2021-01-09 22:23:09 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-12-05 18:49:14 +0100
commitfd4ad6cae88d009e9560e4ee902bf20a5b42d36e (patch)
tree9bac3d0a911510e814f0bf9ebb8d8d3d87c0416e /target/linux
parent75093d1b1de7af82acd3b8bcc61f308c37493400 (diff)
downloadupstream-fd4ad6cae88d009e9560e4ee902bf20a5b42d36e.tar.gz
upstream-fd4ad6cae88d009e9560e4ee902bf20a5b42d36e.tar.bz2
upstream-fd4ad6cae88d009e9560e4ee902bf20a5b42d36e.zip
x86: added support to generate VHDX images
Added support to generate dynamic-sized VHDX images for Hyper-V. Compile-tested on x86 and run-tested on Windows 10 21H2 (Hyper-V). Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/x86/Makefile2
-rw-r--r--target/linux/x86/image/Makefile6
2 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/x86/Makefile b/target/linux/x86/Makefile
index fbad527e0a..e42d87fbc9 100644
--- a/target/linux/x86/Makefile
+++ b/target/linux/x86/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
ARCH:=i386
BOARD:=x86
BOARDNAME:=x86
-FEATURES:=squashfs ext4 vdi vmdk pcmcia targz fpu boot-part rootfs-part
+FEATURES:=squashfs ext4 vdi vmdk vhdx pcmcia targz fpu boot-part rootfs-part
SUBTARGETS:=generic legacy geode 64
KERNEL_PATCHVER:=5.10
diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile
index f61e4ff802..322131c2a4 100644
--- a/target/linux/x86/image/Makefile
+++ b/target/linux/x86/image/Makefile
@@ -109,6 +109,7 @@ define Device/Default
IMAGE/combined.img.gz := grub-config pc | combined | grub-install | gzip | append-metadata
IMAGE/combined.vdi := grub-config pc | combined | grub-install | qemu-image vdi
IMAGE/combined.vmdk := grub-config pc | combined | grub-install | qemu-image vmdk
+ IMAGE/combined.vhdx := grub-config pc | combined | grub-install | qemu-image vhdx -o subformat=dynamic
IMAGE/rootfs.img := append-rootfs | pad-to $(ROOTFS_PARTSIZE)
IMAGE/rootfs.img.gz := append-rootfs | pad-to $(ROOTFS_PARTSIZE) | gzip
ARTIFACT/image-efi.iso := grub-config iso | iso efi
@@ -116,6 +117,7 @@ define Device/Default
IMAGE/combined-efi.img.gz := grub-config efi | combined efi | grub-install efi | gzip | append-metadata
IMAGE/combined-efi.vdi := grub-config efi | combined efi | grub-install efi | qemu-image vdi
IMAGE/combined-efi.vmdk := grub-config efi | combined efi | grub-install efi | qemu-image vmdk
+ IMAGE/combined-efi.vhdx := grub-config efi | combined efi | grub-install efi | qemu-image vhdx -o subformat=dynamic
ifeq ($(CONFIG_TARGET_IMAGES_GZIP),y)
IMAGES-y := rootfs.img.gz
IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.img.gz
@@ -140,6 +142,10 @@ define Device/Default
IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vmdk
IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vmdk
endif
+ ifeq ($(CONFIG_VHDX_IMAGES),y)
+ IMAGES-$$(CONFIG_GRUB_IMAGES) += combined.vhdx
+ IMAGES-$$(CONFIG_GRUB_EFI_IMAGES) += combined-efi.vhdx
+ endif
IMAGES := $$(IMAGES-y)
ARTIFACTS := $$(ARTIFACTS-y)
SUPPORTED_DEVICES :=