-zcn1523h_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6208k(rootfs),1472k(kernel),64k(configure)ro,64k(mfg)ro,64k(art)ro,7680k@0x50000(firmware)
-zcn1523h28_cmdline=board=ZCN-1523H-2 console=ttyS0,115200 $(zcn1523h_mtdlayout)
-define Image/Build/Profile/ZCN1523H28
- $(call Image/Build/Template/$(fs_64k)/$(1),Zcomax,zcn-1523h-2-8,$(zcn1523h28_cmdline))
-endef
-
-zcn1523h516_cmdline=board=ZCN-1523H-5 console=ttyS0,115200 $(zcn1523h_mtdlayout)
-define Image/Build/Profile/ZCN1523H516
- $(call Image/Build/Template/$(fs_64k)/$(1),Zcomax,zcn-1523h-5-16,$(zcn1523h516_cmdline))
-endef
-
-define Image/Build/Profile/Default
- $(call Image/Build/Profile/ALFAAP96,$(1))
- $(call Image/Build/Profile/ALFANX,$(1))
- $(call Image/Build/Profile/ALL0258N,$(1))
- $(call Image/Build/Profile/ALL0305,$(1))
- $(call Image/Build/Profile/AP113,$(1))
- $(call Image/Build/Profile/AP121,$(1))
- $(call Image/Build/Profile/AP121MINI,$(1))
- $(call Image/Build/Profile/AP136,$(1))
- $(call Image/Build/Profile/AP81,$(1))
- $(call Image/Build/Profile/AP83,$(1))
- $(call Image/Build/Profile/A02RBW300N,$(1))
- $(call Image/Build/Profile/DB120,$(1))
- $(call Image/Build/Profile/DIR600A1,$(1))
- $(call Image/Build/Profile/DIR601A1,$(1))
- $(call Image/Build/Profile/DIR615C1,$(1))
- $(call Image/Build/Profile/DIR615E4,$(1))
- $(call Image/Build/Profile/DIR825B1,$(1))
- $(call Image/Build/Profile/EAP7660D,$(1))
- $(call Image/Build/Profile/EWDORIN,$(1))
- $(call Image/Build/Profile/FR54RTR,$(1))
- $(call Image/Build/Profile/HORNETUB,$(1))
- $(call Image/Build/Profile/JA76PF,$(1))
- $(call Image/Build/Profile/JA76PF2,$(1))
- $(call Image/Build/Profile/JWAP003,$(1))
- $(call Image/Build/Profile/MZKW04NU,$(1))
- $(call Image/Build/Profile/MZKW300NH,$(1))
- $(call Image/Build/Profile/NBG_460N_550N_550NH,$(1))
- $(call Image/Build/Profile/OM2P,$(1))
- $(call Image/Build/Profile/PB42,$(1))
- $(call Image/Build/Profile/PB44,$(1))
- $(call Image/Build/Profile/PB92,$(1))
- $(call Image/Build/Profile/RW2458N,$(1))
- $(call Image/Build/Profile/TEW632BRP,$(1))
- $(call Image/Build/Profile/TEW652BRP,$(1))
- $(call Image/Build/Profile/TEW673GRU,$(1))
- $(call Image/Build/Profile/TEW712BR,$(1))
- $(call Image/Build/Profile/TLMR11U,$(1))
- $(call Image/Build/Profile/TLMR3020,$(1))
- $(call Image/Build/Profile/TLMR3040,$(1))
- $(call Image/Build/Profile/TLMR3220,$(1))
- $(call Image/Build/Profile/TLMR3420,$(1))
- $(call Image/Build/Profile/TLWA701,$(1))
- $(call Image/Build/Profile/TLWA901,$(1))
- $(call Image/Build/Profile/TLWDR4300,$(1))
- $(call Image/Build/Profile/TLWR703,$(1))
- $(call Image/Build/Profile/TLWR740,$(1))
- $(call Image/Build/Profile/TLWR741,$(1))
- $(call Image/Build/Profile/TLWR743,$(1))
- $(call Image/Build/Profile/TLWR841,$(1))
- $(call Image/Build/Profile/TLWR842,$(1))
- $(call Image/Build/Profile/TLWR941,$(1))
- $(call Image/Build/Profile/TLWR1041,$(1))
- $(call Image/Build/Profile/TLWR1043,$(1))
- $(call Image/Build/Profile/TLWR2543,$(1))
- $(call Image/Build/Profile/UBNT,$(1))
- $(call Image/Build/Profile/WP543,$(1))
- $(call Image/Build/Profile/WPE72,$(1))
- $(call Image/Build/Profile/WNDR3700,$(1))
- $(call Image/Build/Profile/AP96,$(1))
- $(call Image/Build/Profile/WRT400N,$(1))
- $(call Image/Build/Profile/WRT160NL,$(1))
- $(call Image/Build/Profile/WHRG301N,$(1))
- $(call Image/Build/Profile/WHRHPG300N,$(1))
- $(call Image/Build/Profile/WHRHPGN,$(1))
- $(call Image/Build/Profile/WLAEAG300N,$(1))
- $(call Image/Build/Profile/WZRHPG300NH,$(1))
- $(call Image/Build/Profile/WZRHPG300NH2,$(1))
- $(call Image/Build/Profile/WZRHPAG300H,$(1))
- $(call Image/Build/Profile/WZRHPG450H,$(1))
- $(call Image/Build/Profile/ZCN1523H28,$(1))
- $(call Image/Build/Profile/ZCN1523H516,$(1))
-endef
-
-define Image/Build/Profile/Minimal
- $(call Image/Build/Profile/Default,$(1))
-endef
-
-define Image/Build/Profile/Madwifi
- $(call Image/Build/Profile/EAP7660D,$(1))
- $(call Image/Build/Profile/UBNTRS,$(1))
- $(call Image/Build/Profile/UBNTRSPRO,$(1))
- $(call Image/Build/Profile/UBNTLSSR71,$(1))
- $(call Image/Build/Profile/WP543,$(1))
-endef
+$(eval $(call MultiProfile,AP121,AP121_2M AP121_4M))
+$(eval $(call MultiProfile,AP136,AP136_010 AP136_020))
+$(eval $(call MultiProfile,EWDORIN, EWDORINAP EWDORINRT))
+$(eval $(call MultiProfile,OPENMESH,OM2P MR600))
+$(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW TEW652BRP_RECOVERY))
+$(eval $(call MultiProfile,TLMR3220,TLMR3220V1 TLMR3220V2))
+$(eval $(call MultiProfile,TLWA801,TLWA801NV1))
+$(eval $(call MultiProfile,TLWA901,TLWA901NV1 TLWA901NV2))
+$(eval $(call MultiProfile,TLWA7510,TLWA7510NV1))
+$(eval $(call MultiProfile,TLWR740,TLWR740NV1 TLWR740NV3 TLWR740NV4))
+$(eval $(call MultiProfile,TLWR741,TLWR741NV1 TLWR741NV2 TLWR741NV4))
+$(eval $(call MultiProfile,TLWR841,TLWR841NV15 TLWR841NV3 TLWR841NV5 TLWR841NV7 TLWR841NV8))
+$(eval $(call MultiProfile,TLWR941,TLWR941NV2 TLWR941NV3 TLWR941NV4))
+$(eval $(call MultiProfile,TLWDR4300,TLWDR3600V1 TLWDR4300V1 TLWDR4310V1))
+$(eval $(call MultiProfile,UBNT,UBNTAIRROUTER UBNTRS UBNTRSPRO UBNTLSSR71 UBNTBULLETM UBNTROCKETM UBNTNANOM UBNTUNIFI UBNTUNIFIOUTDOOR UAPPRO))
+$(eval $(call MultiProfile,WNDR3700,WNDR3700V1 WNDR3700V2 WNDR3800 WNDRMAC WNDRMACV2))
+$(eval $(call MultiProfile,WP543,WP543_2M WP543_4M WP543_8M WP543_16M))
+$(eval $(call MultiProfile,WPE72,WPE72_4M WPE72_8M WPE72_16M))
+
+$(eval $(call MultiProfile,Default,$(SINGLE_PROFILES)))
+$(eval $(call MultiProfile,Minimal,$(SINGLE_PROFILES)))
+$(eval $(call MultiProfile,Madwifi,EAP7660D UBNTRS UBNTRSPRO UBNTLSSR71 WP543))