+define Device/zte_mf287_common
+ $(call Device/zte_mf28x_common)
+ SOC := qcom-ipq4018
+# The recovery image is used to return back to stock (an initramfs-based image
+# that can be flashed to the device via sysupgrade
+# The factory image is used to install from the stock firmware by using an
+# exploit for the web interface
+ IMAGES += factory.bin recovery.bin
+ IMAGE/factory.bin := append-ubi
+ IMAGE/recovery.bin := append-squashfs4-fakeroot | sysupgrade-tar kernel=$$$$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) rootfs=$$$$@ | append-metadata
+endef
+
+define Device/zte_mf287plus
+ $(call Device/zte_mf287_common)
+ DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
+ DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
+ DEVICE_MODEL := MF287Plus
+endef
+TARGET_DEVICES += zte_mf287plus
+
+define Device/zte_mf287
+ $(call Device/zte_mf287_common)
+ DEVICE_PACKAGES += ipq-wifi-zte_mf287
+ DEVICE_DTS_CONFIG := config@ap.dk01.1-c2
+ DEVICE_MODEL := MF287
+endef
+TARGET_DEVICES += zte_mf287
+
+define Device/zte_mf287pro
+ $(call Device/zte_mf287_common)
+ DEVICE_PACKAGES += ipq-wifi-zte_mf287plus
+ DEVICE_DTS_CONFIG := config@ap.dk04.1-c1
+ DEVICE_MODEL := MF287Pro
+endef
+TARGET_DEVICES += zte_mf287pro
+