+define Device/asus-rt-ac56u
+ DEVICE_TITLE := Asus RT-AC56U
+ DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
+endef
+TARGET_DEVICES += asus-rt-ac56u
+
+define Device/asus-rt-ac68u
+ DEVICE_TITLE := Asus RT-AC68U
+ DEVICE_PACKAGES := $(USB3_PACKAGES)
+endef
+TARGET_DEVICES += asus-rt-ac68u
+
+define Device/asus-rt-ac87u
+ DEVICE_TITLE := Asus RT-AC87U
+ DEVICE_PACKAGES := $(USB3_PACKAGES)
+endef
+TARGET_DEVICES += asus-rt-ac87u
+
+define Device/asus-rt-n18u
+ DEVICE_TITLE := Asus RT-N18U
+ DEVICE_PACKAGES := $(USB3_PACKAGES)
+endef
+TARGET_DEVICES += asus-rt-n18u
+
+# Buffalo devices have TFTP recovery mode which can work nicely with initramfs
+# kernels.
+# We should have two initramfs images for Buffalo: plain initramfs kernel and
+# TRX with initramfs kernel. It's not possible right now so let's just build
+# plain initramfs kernel as it may be more useful.
+define Device/buffalo/Default
+ KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX)
+ KERNEL_INITRAMFS = $$(KERNEL)
+endef
+
+define Device/buffalo-wxr-1900dhp
+ $(call Device/buffalo/Default)
+ DEVICE_TITLE := Buffalo WXR-1900DHP
+ DEVICE_PACKAGES := $(USB3_PACKAGES)
+endef
+TARGET_DEVICES += buffalo-wxr-1900dhp
+
+define Device/buffalo-wzr-600dhp2
+ $(call Device/buffalo/Default)
+ DEVICE_TITLE := Buffalo WZR-600DHP2
+ DEVICE_PACKAGES := $(B43) $(USB2_PACKAGES)
+endef
+TARGET_DEVICES += buffalo-wzr-600dhp2
+
+define Device/buffalo-wzr-900dhp
+ $(call Device/buffalo/Default)
+ DEVICE_TITLE := Buffalo WZR-900DHP
+ DEVICE_PACKAGES := $(B43) $(USB3_PACKAGES)
+ BUFFALO_TAG_PLATFORM := bcm
+ BUFFALO_TAG_VERSION := 9.99
+ BUFFALO_TAG_MINOR := 9.99
+ IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin
+ IMAGE/factory-DHP-EU.bin := \
+ append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \
+ buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \
+ buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \
+ buffalo-dhp-image
+ IMAGE/factory-DHP2-JP.bin := \
+ append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \
+ buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \
+ buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \
+ buffalo-dhp-image