+define Device/NAND-256K
+ $(Device/UBI)
+ BLOCKSIZE := 256KiB
+ PAGESIZE := 4096
+endef
+
+define Device/NAND-512K
+ $(Device/UBI)
+ BLOCKSIZE := 512KiB
+ PAGESIZE := 4096
+endef
+
+define Device/linksys
+ DEVICE_TITLE := Linksys $(1)
+ DEVICE_PACKAGES := kmod-mwlwifi wpad-mini swconfig
+endef
+
+define Device/armada-385-linksys
+ $(Device/NAND-128K)
+ $(Device/UBI-factory)
+ KERNEL_SIZE := 6144k
+endef
+
+define Device/linksys-wrt1200ac
+ $(call Device/linksys,WRT1200AC (Caiman))
+ $(Device/armada-385-linksys)
+ DEVICE_DTS := armada-385-linksys-caiman
+endef
+TARGET_DEVICES += linksys-wrt1200ac
+
+define Device/linksys-wrt1900acv2
+ $(call Device/linksys,WRT1900ACv2 (Cobra))
+ $(Device/armada-385-linksys)
+ DEVICE_DTS := armada-385-linksys-cobra
+endef
+TARGET_DEVICES += linksys-wrt1900acv2
+
+define Device/linksys-wrt1900acs
+ $(call Device/linksys,WRT1900ACS (Shelby))
+ $(Device/armada-385-linksys)
+ DEVICE_DTS := armada-385-linksys-shelby
+endef
+TARGET_DEVICES += linksys-wrt1900acs
+
+define Device/linksys-wrt1900ac
+ $(call Device/linksys,WRT1900AC (Mamba))
+ DEVICE_DTS := armada-xp-linksys-mamba
+ $(Device/NAND-128K)
+ $(Device/UBI-factory)
+ KERNEL_SIZE := 3072k
+endef
+TARGET_DEVICES += linksys-wrt1900ac