-ifneq ($(CONFIG_VDI_IMAGES),)
- define Image/Build/vdi
- rm $(BIN_DIR)/$(IMG_COMBINED)-$(1).vdi || true
- qemu-img convert -f raw -O vdi \
- $(BIN_DIR)/$(IMG_COMBINED)-$(1).img \
- $(BIN_DIR)/$(IMG_COMBINED)-$(1).vdi
- endef
-endif
-
-ifneq ($(CONFIG_VMDK_IMAGES),)
- define Image/Build/vmdk
- rm $(BIN_DIR)/$(IMG_COMBINED)-$(1).vmdk || true
- qemu-img convert -f raw -O vmdk \
- $(BIN_DIR)/$(IMG_COMBINED)-$(1).img \
- $(BIN_DIR)/$(IMG_COMBINED)-$(1).vmdk
- endef
-endif
-
-define Image/Build/gzip
- gzip -f9n $(BIN_DIR)/$(IMG_COMBINED)-$(1).img
- gzip -f9n $(BIN_DIR)/$(IMG_ROOTFS)-$(1).img
+define Device/generic
+ PROFILES := Default
+ DEVICE_TITLE := Generic (ext4/squashfs)
+ KERNEL := kernel-bin
+ IMAGES := vdi.gz vmdk.gz raw.img.gz
+ IMAGE/vdi.gz := grubpc | qemu-image vdi | gzip
+ IMAGE/vmdk.gz := grubpc | qemu-image vmdk | gzip
+ IMAGE/raw.img.gz := grubpc | gzip
+ FILESYSTEMS := squashfs ext4