# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
+SHELL = bash
VERSION = 1
PATCHLEVEL = 1
$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
u-boot.img: u-boot.bin
- @/bin/echo -e "\e[32m> Preparing U-Boot image \"u-boot.img\"...\e[0m"
+ @echo -e "\e[32m> Preparing U-Boot image \"u-boot.img\"...\e[0m"
./tools/mkimage -A $(ARCH) -T firmware -C none \
-a $(TEXT_BASE) -e 0 \
-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
u-boot.lzimg: $(obj)u-boot.bin System.map
@rm -rf u-boot.bin.lzma
$(LZMA) --best --keep $(obj)u-boot.bin
- @/bin/echo -e "\e[32m> Preparing compressed U-Boot image \"u-boot.lzimg\"...\e[0m"
+ @echo -e "\e[32m> Preparing compressed U-Boot image \"u-boot.lzimg\"...\e[0m"
./tools/mkimage -A mips -T firmware -C lzma \
-a 0x$(shell grep "T _start" $(TOPDIR)/System.map | awk '{ printf "%s", $$1 }') \
-e 0x$(shell grep "T _start" $(TOPDIR)/System.map | awk '{ printf "%s", $$1 }') \
@echo "#define CONFIG_MACH_HORNET 1" >> include/config.h
wr703n_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR703N at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR703N at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_WR703N_V1 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
wr720n_v3_CN_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR720N v3 CN at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR720N v3 CN at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_WR720N_V3 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
wr710n_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR710N at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR710N at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_WR710N_V1 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
mr3020_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR3020 at:' `date`.'\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-MR3020 at:' `date`.'\e[0m'
@echo "#define CONFIG_FOR_TPLINK_MR3020_V1 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
mr3040_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR3040 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-MR3040 at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_MR3040_V1V2 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
mr10u_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR10U at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-MR10U at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_MR10U_V1 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
mr13u_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR13U at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-MR13U at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_MR13U_V1 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
wr740n_v4_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR740N v4 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR740N v4 at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_WR740N_V4 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
mr3220_v2_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR3220 v2 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-MR3220 v2 at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_TPLINK_MR3220_V2 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
dir505_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for D-Link DIR-505 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for D-Link DIR-505 at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_DLINK_DIR505_A1 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN_ACTIVE_LOW 1" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
gs_oolite_v1_dev_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for GS-Oolite v1 with dev board at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for GS-Oolite v1 with dev board at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_GS_OOLITE_V1_DEV 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 16" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
carambola2_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for 8devices Carambola 2 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for 8devices Carambola 2 at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_8DEVICES_CARAMBOLA2 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN_ACTIVE_LOW 1" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
dragino_v2_ms14_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for Dragino Dragino v2 (MS14) at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for Dragino Dragino v2 (MS14) at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_DRAGINO_V2 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN_ACTIVE_LOW 1" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
villagetelco_mp2_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for Village Telco Mesh Potato 2 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for Village Telco Mesh Potato 2 at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_MESH_POTATO_V2 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN_ACTIVE_LOW 1" >> include/config.h
@./mkconfig -a ap121 mips mips ap121 ar7240 ar7240
gl-inet_config : unconfig hornet_common_config
- @/bin/echo -e '\e[32m> Configuring for GL.iNet at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for GL.iNet at:' `date` '\e[0m'
@echo "#define CONFIG_FOR_GL_INET 1" >> include/config.h
@echo "#define CONFIG_GPIO_RESET_BTN 11" >> include/config.h
@echo "#define CONFIG_DEFAULT_FLASH_SIZE_IN_MB 8" >> include/config.h
@echo "#define CONFIG_WASP_SUPPORT 1" >> include/config.h
wdr3600_43x0_config : unconfig wasp_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WDR3600/43x0 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WDR3600/43x0 at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_AR9344_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_WDR3600_WDR43X0_V1 1" >> include/config.h
@echo "#define CFG_ATHRS17_PHY 1" >> include/config.h
@./mkconfig -a db12x mips mips db12x ar7240 ar7240
wdr3500_config : unconfig wasp_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WDR3500 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WDR3500 at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_AR9344_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_WDR3500_V1 1" >> include/config.h
@echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
@./mkconfig -a db12x mips mips db12x ar7240 ar7240
mr3420_v2_config : unconfig wasp_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR3420 v2 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-MR3420 v2 at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_AR9341_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_MR3420_V2 1" >> include/config.h
@echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
@./mkconfig -a db12x mips mips db12x ar7240 ar7240
wr841n_v8_config : unconfig wasp_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR841N/D v8 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR841N/D v8 at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_AR9341_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_WR841N_V8 1" >> include/config.h
@echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
@./mkconfig -a db12x mips mips db12x ar7240 ar7240
wa830re_v2_wa801nd_v2_config : unconfig wasp_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WA830RE/TL-WA801ND v2 at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WA830RE/TL-WA801ND v2 at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_AR9341_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_WA830RE_V2_WA801ND_V2 1" >> include/config.h
@echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
@./mkconfig -a ap143 mips mips ap143 ar7240 ar7240
wr820n_CN_config : unconfig ap143_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR820N CN at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR820N CN at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_QCA953X_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_WR820N_CN 1" >> include/config.h
@echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
@./mkconfig -a ap143 mips mips ap143 ar7240 ar7240
wr802n_config : unconfig ap143_common_config
- @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR802N at:' `date` '\e[0m'
+ @echo -e '\e[32m> Configuring for TP-Link TL-WR802N at:' `date` '\e[0m'
@echo "#define SOC_TYPE QCA_QCA953X_SOC" >> include/config.h
@echo "#define CONFIG_FOR_TPLINK_WR802N 1" >> include/config.h
@echo "#define CFG_ATHRS27_PHY 1" >> include/config.h
#########################################################################
clean:
- @/bin/echo -e "\e[32m> Making $@...\e[0m"
+ @echo -e "\e[32m> Making $@...\e[0m"
@find . -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o' -o -name '*.a' -o -name .depend \) -print \
@rm -f bootstrap bootstrap.bin tuboot.bin u-boot.lzimg u-boot.bin.lzma bootstrap.map
clobber: clean
- @/bin/echo -e "\e[32m> Making $@...\e[0m"
+ @echo -e "\e[32m> Making $@...\e[0m"
@find . -type f \( -name .depend \
-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
-print0 \