-
-ifdef CONFIG_BOOTDELAY
- @echo "#define CONFIG_BOOTDELAY "$(CONFIG_BOOTDELAY) >> include/config.h
-endif
-
-ifdef CFG_PLL_FREQ
- @echo "#define CFG_PLL_FREQ "$(CFG_PLL_FREQ) >> include/config.h
-endif
-
- @echo "#define CONFIG_DELAY_TO_AUTORUN_HTTPD 3" >> include/config.h
- @echo "#define CONFIG_DELAY_TO_AUTORUN_CONSOLE 5" >> include/config.h
- @echo "#define CONFIG_DELAY_TO_AUTORUN_NETCONSOLE 7" >> include/config.h
-
- # max delay time for button pressing
- @echo "#define CONFIG_MAX_BUTTON_PRESSING 10" >> include/config.h
-
- # don't show info about console (in, out, err...)
- @echo "#define CFG_CONSOLE_INFO_QUIET" >> include/config.h
-
-hornet_common_config : common_config
- @echo "#define CONFIG_AR7240 1" >> include/config.h
- @echo "#define CONFIG_MACH_HORNET 1" >> include/config.h
- @echo "#define CONFIG_HORNET_1_1_WAR 1" >> include/config.h
- @echo "#define NEW_DDR_TAP_CAL 1" >> include/config.h
-
-wr703n_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-WR703N at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WR703N_V1 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR703N\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-wr720n_v3_CH_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-WR720N v3 CH at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WR720N_V3 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR720N v3 CH\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-wr710n_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-WR710N at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WR710N_V1 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR710N\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-mr3020_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-MR3020 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_MR3020_V1 1" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WPS_LED_BIT 26" >> include/config.h
- @echo "#define GPIO_WPS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 1" >> include/config.h
- @echo "#define GPIO_ETH_LED_BIT 17" >> include/config.h
- @echo "#define GPIO_ETH_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR3020\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-mr3040_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-MR3040 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_MR3040_V1V2 1" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 26" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
- @echo "#define GPIO_ETH_LED_BIT 17" >> include/config.h
- @echo "#define GPIO_ETH_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR3040\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-mr10u_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-MR10U at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_MR10U_V1 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR10U\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-mr13u_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-MR13U at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_MR13U_V1 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR13U\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-wr740n_v4_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-WR740N v4 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WR740N_V4 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN1_LED_BIT 14" >> include/config.h
- @echo "#define GPIO_LAN1_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN2_LED_BIT 15" >> include/config.h
- @echo "#define GPIO_LAN2_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN3_LED_BIT 16" >> include/config.h
- @echo "#define GPIO_LAN3_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN4_LED_BIT 17" >> include/config.h
- @echo "#define GPIO_LAN4_LED_ON 0" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_BIT 13" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_ON 1" >> include/config.h
- @echo "#define GPIO_QSS_LED_BIT 1" >> include/config.h
- @echo "#define GPIO_QSS_LED_ON 1" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-WR74xN/D v4\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-mr3220_v2_config : unconfig hornet_common_config
- @echo '======= Configuring for TP-Link TL-MR3220 v2 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_MR3220_V2 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN1_LED_BIT 14" >> include/config.h
- @echo "#define GPIO_LAN1_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN2_LED_BIT 15" >> include/config.h
- @echo "#define GPIO_LAN2_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN3_LED_BIT 16" >> include/config.h
- @echo "#define GPIO_LAN3_LED_ON 1" >> include/config.h
- @echo "#define GPIO_LAN4_LED_BIT 17" >> include/config.h
- @echo "#define GPIO_LAN4_LED_ON 0" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_BIT 13" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_ON 1" >> include/config.h
- @echo "#define GPIO_QSS_LED_BIT 1" >> include/config.h
- @echo "#define GPIO_QSS_LED_ON 1" >> include/config.h
- @echo "#define GPIO_USB_LED_BIT 26" >> include/config.h
- @echo "#define GPIO_USB_LED_ON 1" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR3220 v2\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-dir505_config : unconfig hornet_common_config
- @echo '======= Configuring for D-Link DIR-505 at:' `date` '======='
- @echo "#define CONFIG_FOR_DLINK_DIR505_A1 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 27" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
-
- # we will use WPS button instead of reset
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
-
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for DIR-505\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-carambola2_config : unconfig hornet_common_config
- @echo '======= Configuring for 8devices Carambola 2 at:' `date` '======='
- @echo "#define CONFIG_FOR_8DEVICES_CARAMBOLA2 1" >> include/config.h
-
- # Carambola 2 uses uncompressed version
- @echo "#undef COMPRESSED_UBOOT" >> include/config.h
-
- # Carambola 2 uses 40 MHz oscillator
- @echo "#define CONFIG_40MHZ_XTAL_SUPPORT 1" >> include/config.h
-
- @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h
-
- # Carambola 2 development board has RST button pulled up, so it is active at low
- @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
-
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 16" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for CARAMBOLA2 v1\"" >> include/config.h
-
- @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
-
-wasp_common_config : common_config
- @echo "#define CONFIG_AR7240 1" >> include/config.h
- @echo "#define CONFIG_WASP 1" >> include/config.h
- @echo "#define CONFIG_WASP_SUPPORT 1" >> include/config.h
-
-wdr3600_43x0_config : unconfig wasp_common_config
- @echo '======= Configuring for TP-Link TL-WDR3600/43x0 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WDR3600_WDR43X0_V1 1" >> include/config.h
- @echo "#define DDR2_32BIT_SUPPORT 1" >> include/config.h
- @echo "#define CFG_ATHRS17_PHY 1" >> include/config.h
- @echo "#define CFG_AG7240_NMACS 1" >> include/config.h
- @echo "#define CFG_DUAL_PHY_SUPPORT 1" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 14" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_2G_LED_BIT 13" >> include/config.h
- @echo "#define GPIO_WLAN_2G_LED_ON 0" >> include/config.h
- @echo "#define GPIO_USB1_LED_BIT 11" >> include/config.h
- @echo "#define GPIO_USB1_LED_ON 0" >> include/config.h
- @echo "#define GPIO_USB2_LED_BIT 12" >> include/config.h
- @echo "#define GPIO_USB2_LED_ON 0" >> include/config.h
- @echo "#define GPIO_QSS_LED_BIT 15" >> include/config.h
- @echo "#define GPIO_QSS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 16" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"DB120 (AR9344) U-Boot for TL-WDR3600/43x0\"" >> include/config.h
-
- @./mkconfig -a db12x mips mips db12x ar7240 ar7240
-
-mr3420_v2_config : unconfig wasp_common_config
- @echo '======= Configuring for TP-Link TL-MR3420 v2 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_MR3420_V2 1" >> include/config.h
- @echo "#define CONFIG_AP123 1" >> include/config.h
- @echo "#define DDR2_32BIT_SUPPORT 1" >> include/config.h
- @echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
- @echo "#define CFG_AG7240_NMACS 2" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 14" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 13" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_BIT 18" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN1_LED_BIT 19" >> include/config.h
- @echo "#define GPIO_LAN1_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN2_LED_BIT 20" >> include/config.h
- @echo "#define GPIO_LAN2_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN3_LED_BIT 21" >> include/config.h
- @echo "#define GPIO_LAN3_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN4_LED_BIT 12" >> include/config.h
- @echo "#define GPIO_LAN4_LED_ON 0" >> include/config.h
- @echo "#define GPIO_USB_LED_BIT 11" >> include/config.h
- @echo "#define GPIO_USB_LED_ON 0" >> include/config.h
- @echo "#define GPIO_QSS_LED_BIT 15" >> include/config.h
- @echo "#define GPIO_QSS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 17" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP123 (AR9341) U-Boot for TL-MR3420 v2\"" >> include/config.h
-
- @./mkconfig -a db12x mips mips db12x ar7240 ar7240
-
-wr841n_v8_config : unconfig wasp_common_config
- @echo '======= Configuring for TP-Link TL-WR841N/D v8 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WR841N_V8 1" >> include/config.h
- @echo "#define CONFIG_AP123 1" >> include/config.h
- @echo "#define DDR2_32BIT_SUPPORT 1" >> include/config.h
- @echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
- @echo "#define CFG_AG7240_NMACS 2" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 14" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 13" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_BIT 18" >> include/config.h
- @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN1_LED_BIT 19" >> include/config.h
- @echo "#define GPIO_LAN1_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN2_LED_BIT 20" >> include/config.h
- @echo "#define GPIO_LAN2_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN3_LED_BIT 21" >> include/config.h
- @echo "#define GPIO_LAN3_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN4_LED_BIT 12" >> include/config.h
- @echo "#define GPIO_LAN4_LED_ON 0" >> include/config.h
- @echo "#define GPIO_QSS_LED_BIT 15" >> include/config.h
- @echo "#define GPIO_QSS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 17" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP123 (AR9341) U-Boot for TL-WR841N/D v8\"" >> include/config.h
-
- @./mkconfig -a db12x mips mips db12x ar7240 ar7240
-
-wa830re_v2_wa801nd_v2_config : unconfig wasp_common_config
- @echo '======= Configuring for TP-Link TL-WA830RE/TL-WA801ND v2 at:' `date` '======='
- @echo "#define CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2 1" >> include/config.h
- @echo "#define CONFIG_AP123 1" >> include/config.h
- @echo "#define DDR2_32BIT_SUPPORT 1" >> include/config.h
- @echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
- @echo "#define CFG_AG7240_NMACS 2" >> include/config.h
- @echo "#define GPIO_SYS_LED_BIT 14" >> include/config.h
- @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_LAN_LED_BIT 18" >> include/config.h
- @echo "#define GPIO_LAN_LED_ON 0" >> include/config.h
- @echo "#define GPIO_WLAN_LED_BIT 13" >> include/config.h
- @echo "#define GPIO_WLAN_LED_ON 0" >> include/config.h
- @echo "#define GPIO_QSS_LED_BIT 15" >> include/config.h
- @echo "#define GPIO_QSS_LED_ON 0" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_BIT 17" >> include/config.h
- @echo "#define GPIO_RST_BUTTON_IS_ACTIVE_LOW 1" >> include/config.h
- @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
- @echo "#define BOARD_CUSTOM_STRING \"AP123 (AR9341) U-Boot for TL-WA830RE/TL-WA801ND v2\"" >> include/config.h
-
- @./mkconfig -a db12x mips mips db12x ar7240 ar7240
-
-#########################################################################
-#########################################################################
-#########################################################################
+ @$(call include_add,soc/soc_list.h)
+ @$(call define_add,CONFIG_BUILD_DATE_UTC,$(shell date -u +"%Y-%m-%d"))
+
+ar933x_common: unconfig config_common
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(call define_add,CFG_ATHRS26_PHY,1)
+ @$(call define_add,CONFIG_MACH_HORNET,1)
+
+ar934x_common: unconfig config_common
+ @$(call define_add,CONFIG_WASP,1)
+ @$(call define_add,CONFIG_WASP_SUPPORT,1)
+
+qca953x_common: unconfig config_common
+ @$(call define_add,CONFIG_ATHEROS,1)
+ @$(call define_add,CONFIG_MACH_QCA953x,1)
+
+lsdk_kernel:
+ @$(call define_add,CONFIG_LSDK_KERNEL,1)
+
+# =============================
+# TARGETS IN ALPHABETICAL ORDER
+# =============================
+
+8devices_carambola2: ar933x_common
+ @$(call config_init,8devices Carambola 2,carambola-v2,16,11,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_8DEVICES_CARAMBOLA2,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+alfa-network_ap121f: ar933x_common
+ @$(call config_init,ALFA NETWORK AP121F,ap121f,16,12,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_ALFA_NETWORK_AP121F,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+alfa-network_hornet-ub: ar933x_common
+ @$(call config_init,ALFA NETWORK Hornet-UB,hornet-ub,8,12,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_ALFA_NETWORK_HORNET_UB,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+comfast_cf-e314n: qca953x_common
+ @$(call config_init,Comfast CF-E314N,cf-e314n,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_COMFAST_CF_E314N,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+comfast_cf-e320n_v2: qca953x_common
+ @$(call config_init,Comfast CF-E320N v2,cf-e320n-v2,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_COMFAST_CF_E320N_V2,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+comfast_cf-e520n: qca953x_common
+ @$(call config_init,Comfast CF-E520N,cf-e520n,8,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_COMFAST_CF_E520N,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+comfast_cf-e530n: qca953x_common
+ @$(call config_init,Comfast CF-E530N,cf-e530n,8,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_COMFAST_CF_E530N,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+creatcomm-technology_d3321: ar933x_common
+ @$(call config_init,CreatComm Technology D3321,d3321,8,12,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_CREATCOMM_D3321,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+d-link_dir-505: ar933x_common
+ @$(call config_init,D-Link DIR-505,dir-505,8,11,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_DLINK_DIR505_A1,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+dragino_v2_ms14: ar933x_common
+ @$(call config_init,Dragino v2 (MS14),dragino-v2,16,11,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_DRAGINO_V2,1)
+ @$(call define_add,WEBFAILSAFE_DISABLE_ART_UPGRADE,1)
+ @$(call define_add,WEBFAILSAFE_DISABLE_UBOOT_UPGRADE,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+engenius_ens202ext: ar934x_common
+ @$(call config_init,EnGenius ENS202EXT,ens202ext,16,1,1,QCA_AR9341_SOC)
+ @$(call define_add,CONFIG_FOR_ENGENIUS_ENS202EXT,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+gainstrong_oolite_v1_dev: ar933x_common
+ @$(call config_init,Gainstrong Oolite v1 (dev board),oolite-v1,16,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_GS_OOLITE_V1_DEV,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+gl-inet_6416: ar933x_common
+ @$(call config_init,GL.iNet 6416,glinet-6416,8,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_GL_INET,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+gl-inet_gl-ar150: ar933x_common
+ @$(call config_init,GL.iNet GL-AR150,gl-ar150,16,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_GL_AR150,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+p2w_cpe505n: qca953x_common
+ @$(call config_init,P&W CPE505N,cpe505n,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_P2W_CPE505N,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+p2w_r602n: qca953x_common
+ @$(call config_init,P&W R602N,r602n,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_P2W_R602N,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-mr10u: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR10U,tl-mr10u,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR10U_V1,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-mr13u: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR13U,tl-mr13u,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR13U_V1,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-mr3020: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR3020,tl-mr3020,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR3020_V1,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-mr3040: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR3040,tl-mr3040,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR3040_V1V2,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-mr3220_v2: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR3220 v2,tl-mr3220-v2,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR3220_V2,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-mr3420_v2: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR3420 v2,tl-mr3420-v2,4,17,1,QCA_AR9341_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR3420_V2,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-mr3420_v3: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR3420 v3,tl-mr3420-v3,4,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR3420_V3,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-mr6400_v1v2: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-MR6400 v1/v2,tl-mr6400-v1v2,8,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_MR6400_V1V2,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CONFIG_QCA_ETH_PHY_SWAP,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wa801nd_v2: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WA801ND v2,tl-wa801nd-v2,4,17,1,QCA_AR9341_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WA801ND_V2,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wa830re_v2: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WA830RE v2,tl-wa830re-v2,4,17,1,QCA_AR9341_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WA830RE_V2,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wa850re_v2: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WA850RE v2,tl-wa850re-v2,4,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WA850RE_V2,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wdr3500: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WDR3500,tl-wdr3500,8,16,1,QCA_AR9344_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WDR3500_V1,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(call define_add,CONFIG_PCI,1)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wdr3600: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WDR3600,tl-wdr3600,8,16,1,QCA_AR9344_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WDR3600_V1,1)
+ @$(call define_add,CFG_ATHRS17_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,1)
+ @$(call define_add,CONFIG_PCI,1)
+ @$(call define_add,CFG_DUAL_PHY_SUPPORT,1)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wdr43x0: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WDR43x0,tl-wdr43x0,8,16,1,QCA_AR9344_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WDR43X0_V1,1)
+ @$(call define_add,CFG_ATHRS17_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,1)
+ @$(call define_add,CONFIG_PCI,1)
+ @$(call define_add,CFG_DUAL_PHY_SUPPORT,1)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wr703n: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR703N,tl-wr703n,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR703N_V1,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-wr710n: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR710N,tl-wr710n,8,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR710N_V1,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-wr720n_v3_CN: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR720N v3 CN,tl-wr720n-v3,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR720N_V3,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-wr740n_v4: ar933x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR74xN/D v4,tl-wr74xnd-v4,4,11,,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR740N_V4,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+tp-link_tl-wr802n: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR802N,tl-wr802n,4,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR802N,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr810n: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR810N,tl-wr810n,8,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR810N,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr820n_CN: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR820N CN,tl-wr820n,4,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR820N_CN,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr841n_v10: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR841N/D v10,tl-wr841nd-v10,4,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR841N_V10,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr841n_v11: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR841N/D v11,tl-wr841nd-v11,4,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR841N_V11,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr841n_v8: ar934x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR841N/D v8,tl-wr841nd-v8,4,17,1,QCA_AR9341_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR841N_V8,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+tp-link_tl-wr841n_v9: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR841N/D v9,tl-wr841nd-v9,4,12,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR841N_V9,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr842n_v3: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR842N/D v3,tl-wr842nd-v3,16,1,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR842N_V3,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+tp-link_tl-wr902ac_v1: qca953x_common lsdk_kernel
+ @$(call config_init,TP-Link TL-WR902AC,tl-wr902ac,8,3,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_TPLINK_WR902AC_V1,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(call define_add,CONFIG_PCI,1)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+unwireddevices_unwired-one: ar933x_common
+ @$(call config_init,Black Swift aka Unwired One,black-swift,16,11,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_BLACK_SWIFT_BOARD,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+village-telco_mesh-potato_v2: ar933x_common
+ @$(call config_init,Village Telco Mesh Potato 2,mesh-potato-v2,16,11,1,QCA_AR933X_SOC)
+ @$(call define_add,CONFIG_FOR_MESH_POTATO_V2,1)
+ @$(call define_add,WEBFAILSAFE_DISABLE_ART_UPGRADE,1)
+ @$(call define_add,WEBFAILSAFE_DISABLE_UBOOT_UPGRADE,1)
+ @$(MKCONFIG) -a ap121 mips mips ap121 ar7240 ar7240
+
+wallys_dr531: qca953x_common
+ @$(call config_init,Wallys DR531,dr531,8,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_WALLYS_DR531,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(call define_add,CONFIG_PCI,1)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+yuncore_ap90q: qca953x_common
+ @$(call config_init,YunCore AP90Q,ap90q,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_YUNCORE_AP90Q,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+yuncore_cpe830: qca953x_common
+ @$(call config_init,YunCore CPE830,cpe830,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_YUNCORE_CPE830,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+yuncore_cpe870: ar934x_common
+ @$(call config_init,YunCore CPE870,cpe870,8,16,1,QCA_AR9341_SOC)
+ @$(call define_add,CONFIG_FOR_YUNCORE_CPE870,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_AG7240_NMACS,2)
+ @$(MKCONFIG) -a db12x mips mips db12x ar7240 ar7240
+
+zbtlink_zbt-we1526: qca953x_common
+ @$(call config_init,Zbtlink ZBT-WE1526,zbt-we1526,16,17,1,QCA_QCA953X_SOC)
+ @$(call define_add,CONFIG_FOR_ZBTLINK_ZBT_WE1526,1)
+ @$(call define_add,CONFIG_USB,1)
+ @$(call define_add,CFG_ATHRS27_PHY,1)
+ @$(call define_add,CFG_ATH_GMAC_NMACS,2)
+ @$(MKCONFIG) -a ap143 mips mips ap143 ar7240 ar7240
+
+# =============
+# CLEAN TARGETS
+# =============