Index: stand/efi/loader/Makefile =================================================================== --- stand/efi/loader/Makefile +++ stand/efi/loader/Makefile @@ -5,6 +5,7 @@ LOADER_UFS_SUPPORT?= yes LOADER_CD9660_SUPPORT?= no LOADER_EXT2FS_SUPPORT?= no +LOADER_AARCH64_HYPERV_SUPPORT?= no .include Index: stand/efi/loader/conf.c =================================================================== --- stand/efi/loader/conf.c +++ stand/efi/loader/conf.c @@ -88,7 +88,9 @@ struct console *consoles[] = { &efi_console, +#if defined(LOADER_AARCH64_HYPERV_SUPPORT) &comconsole, +#endif #if defined(__amd64__) || defined(__i386__) &nullconsole, &spinconsole, Index: stand/loader.mk =================================================================== --- stand/loader.mk +++ stand/loader.mk @@ -99,6 +99,11 @@ CFLAGS+= -DLOADER_UFS_SUPPORT .endif +# Hyper-V comconsole support +.if ${LOADER_AARCH64_HYPERV_SUPPORT:Uno} == "yes" +CFLAGS+= -DLOADER_AARCH64_HYPERV_SUPPORT +.endif + # Compression .if ${LOADER_GZIP_SUPPORT:Uno} == "yes" CFLAGS+= -DLOADER_GZIP_SUPPORT