image efi-part.vfat {
	vfat {
		file EFI {
			image = "efi-part/EFI"
		}
		file vmlinux.efi {
			image = "vmlinux.efi"
		}
	}

	size = 64M
}

image disk.img {
	hdimage {
		partition-table-type = "gpt"
	}

	partition boot {
		image = "efi-part.vfat"
		partition-type-uuid = U
		offset = 32K
		bootable = true
	}

	partition root {
		partition-type-uuid = root-loongarch64
		image = "rootfs.ext2"
	}
}
