From 2e9d9e206655b9519bb6a263e10d111f89ea4eb6 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Sat, 6 Sep 2014 02:35:05 +0200 Subject: [PATCH] Small, cosmetic changes in Makefiles --- Makefile | 62 +++++++++++++++++++++++++------------------------ u-boot/Makefile | 42 +++++++++++++++++---------------- 2 files changed, 54 insertions(+), 50 deletions(-) diff --git a/Makefile b/Makefile index 64cb467..89eb5d6 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ export BUILD_TOPDIR=$(PWD) export STAGING_DIR=$(BUILD_TOPDIR)/tmp -export MAKECMD=make --silent ARCH=mips CROSS_COMPILE=mips-linux-gnu- +export MAKECMD=make --silent --no-print-directory ARCH=mips CROSS_COMPILE=mips-linux-gnu- # boot delay (time to autostart boot command) export CONFIG_BOOTDELAY=1 @@ -16,7 +16,7 @@ tplink_mr3020: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) mr3020_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wr703n: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr703n tplink_wr703n: export MAX_UBOOT_SIZE=64 @@ -25,7 +25,7 @@ tplink_wr703n: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wr703n_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wr720n_v3_CH: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr720n_v3_CH tplink_wr720n_v3_CH: export MAX_UBOOT_SIZE=64 @@ -34,7 +34,7 @@ tplink_wr720n_v3_CH: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wr720n_v3_CH_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wr710n: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr710n tplink_wr710n: export MAX_UBOOT_SIZE=64 @@ -43,7 +43,7 @@ tplink_wr710n: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wr710n_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_mr3040: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3040 tplink_mr3040: export MAX_UBOOT_SIZE=64 @@ -52,7 +52,7 @@ tplink_mr3040: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) mr3040_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_mr10u: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr10u tplink_mr10u: export MAX_UBOOT_SIZE=64 @@ -61,7 +61,7 @@ tplink_mr10u: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) mr10u_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_mr13u: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr13u tplink_mr13u: export MAX_UBOOT_SIZE=64 @@ -70,7 +70,7 @@ tplink_mr13u: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) mr13u_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wr740n_v4: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr740n_v4 tplink_wr740n_v4: export MAX_UBOOT_SIZE=64 @@ -79,7 +79,7 @@ tplink_wr740n_v4: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wr740n_v4_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_mr3220_v2: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3220_v2 tplink_mr3220_v2: export MAX_UBOOT_SIZE=64 @@ -88,7 +88,7 @@ tplink_mr3220_v2: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) mr3220_v2_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wdr3600_43x0: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wdr3600-43x0 tplink_wdr3600_43x0: export MAX_UBOOT_SIZE=64 @@ -98,7 +98,7 @@ tplink_wdr3600_43x0: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wdr3600_43x0_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wdr3500: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wdr3500 tplink_wdr3500: export MAX_UBOOT_SIZE=64 @@ -108,7 +108,7 @@ tplink_wdr3500: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wdr3500_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_mr3420_v2: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr3420_v2 tplink_mr3420_v2: export MAX_UBOOT_SIZE=64 @@ -118,7 +118,7 @@ tplink_mr3420_v2: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) mr3420_v2_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wr841n_v8: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr841n_v8 tplink_wr841n_v8: export MAX_UBOOT_SIZE=64 @@ -128,7 +128,7 @@ tplink_wr841n_v8: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wr841n_v8_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size tplink_wa830re_v2_wa801nd_v2: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wa830re_v2_tl-wa801nd_v2 tplink_wa830re_v2_wa801nd_v2: export MAX_UBOOT_SIZE=64 @@ -138,7 +138,7 @@ tplink_wa830re_v2_wa801nd_v2: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) wa830re_v2_wa801nd_v2_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size dlink_dir505: export UBOOT_FILE_NAME=uboot_for_d-link_dir-505 dlink_dir505: export MAX_UBOOT_SIZE=64 @@ -147,7 +147,7 @@ dlink_dir505: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) dir505_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size gs-oolite_v1_dev: export UBOOT_FILE_NAME=uboot_for_gs-oolite_v1_dev gs-oolite_v1_dev: export MAX_UBOOT_SIZE=64 @@ -156,7 +156,7 @@ gs-oolite_v1_dev: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) gs_oolite_v1_dev_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size 8devices_carambola2: export UBOOT_FILE_NAME=uboot_for_8devices_carambola2 8devices_carambola2: export MAX_UBOOT_SIZE=256 @@ -164,7 +164,7 @@ gs-oolite_v1_dev: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) carambola2_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/u-boot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size dragino_v2_ms14: export UBOOT_FILE_NAME=uboot_for_dragino_v2_ms14 dragino_v2_ms14: export MAX_UBOOT_SIZE=192 @@ -173,28 +173,30 @@ dragino_v2_ms14: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) dragino_v2_ms14_config @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/u-boot.bin $(BUILD_TOPDIR)/bin/temp.bin - @make show_size + @make --no-print-directory show_size show_size: - @echo -e "\n======= Preparing $(MAX_UBOOT_SIZE)KB file filled with 0xFF... =======" - @`tr "\000" "\377" < /dev/zero | dd ibs=1k count=$(MAX_UBOOT_SIZE) of=$(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin` - @echo -e "\n======= Copying U-Boot image... =======" - @`dd if=$(BUILD_TOPDIR)/bin/temp.bin of=$(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin conv=notrunc` + @/bin/echo -e "\e[32m" + @echo "> Preparing $(MAX_UBOOT_SIZE)KB file filled with 0xFF..." + @`tr "\000" "\377" < /dev/zero | dd ibs=1k count=$(MAX_UBOOT_SIZE) of=$(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin 2> /dev/null` + @echo "> Copying U-Boot image..." + @`dd if=$(BUILD_TOPDIR)/bin/temp.bin of=$(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin conv=notrunc 2> /dev/null` @`rm $(BUILD_TOPDIR)/bin/temp.bin` - @echo -e "\n======= U-Boot image ready, size:" `wc -c < $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin`" bytes =======\n" + @echo "> U-Boot image ready, size:" `wc -c < $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin`" bytes" @`md5sum $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin | awk '{print $$1}' | tr -d '\n' > $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).md5` @`echo ' *'$(UBOOT_FILE_NAME).bin >> $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).md5` - @if [ "`wc -c < $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin`" -gt "`echo '$(MAX_UBOOT_SIZE)*1024' | bc`" ]; then \ - echo -e "\n **********************************"; \ - echo " * U-BOOT IMAGE SIZE TOO BIG! *"; \ - echo -e " **********************************\n"; \ + @if [ "`wc -c < $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin`" -gt "`/bin/echo '$(MAX_UBOOT_SIZE)*1024' | bc`" ]; then \ + /bin/echo -e "\e[31m\n**************************************************"; \ + /bin/echo "* WARNING: U-BOOT IMAGE SIZE IS TOO BIG! *"; \ + /bin/echo -e "**************************************************"; \ fi; + @/bin/echo -e "\e[0m" clean: - @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) distclean + @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) --no-print-directory distclean @rm -f $(BUILD_TOPDIR)/u-boot/httpd/fsdata.c clean_all: clean - @echo Removing all binary images + @/bin/echo -e "\e[32m> Removing all binary images...\e[0m" @rm -f $(BUILD_TOPDIR)/bin/*.bin @rm -f $(BUILD_TOPDIR)/bin/*.md5 diff --git a/u-boot/Makefile b/u-boot/Makefile index 48e3ed3..c277ab3 100755 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -169,6 +169,7 @@ u-boot.bin: u-boot $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ u-boot.img: u-boot.bin + @/bin/echo -e "\n\e[32m> Preparing U-Boot image...\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) | \ @@ -201,6 +202,7 @@ u-boot.lzimg: $(obj)u-boot.bin System.map @rm -rf u-boot.bin.lzma #$(LZMA) e $(obj)u-boot.bin u-boot.bin.lzma $(LZMA) --best --keep $(obj)u-boot.bin + @/bin/echo -e "\n\e[32m> Preparing U-Boot image...\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 }') \ @@ -298,7 +300,7 @@ hornet_common_config : common_config @echo "#define CONFIG_HORNET_1_1_WAR 1" >> include/config.h wr703n_config : unconfig hornet_common_config - @echo '======= Configuring for TP-Link TL-WR703N at:' `date` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -309,7 +311,7 @@ wr703n_config : unconfig hornet_common_config @./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` '=======' + @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR720N v3 CH at:' `date` '\e[0m' @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 @@ -320,7 +322,7 @@ wr720n_v3_CH_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 wr710n_config : unconfig hornet_common_config - @echo '======= Configuring for TP-Link TL-WR710N at:' `date` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -331,7 +333,7 @@ wr710n_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 mr3020_config : unconfig hornet_common_config - @echo '======= Configuring for TP-Link TL-MR3020 at:' `date` '=======' + @/bin/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 GPIO_INTERNET_LED_BIT 27" >> include/config.h @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h @@ -348,7 +350,7 @@ mr3020_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 mr3040_config : unconfig hornet_common_config - @echo '======= Configuring for TP-Link TL-MR3040 at:' `date` '=======' + @/bin/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 GPIO_INTERNET_LED_BIT 27" >> include/config.h @echo "#define GPIO_INTERNET_LED_ON 0" >> include/config.h @@ -363,7 +365,7 @@ mr3040_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 mr10u_config : unconfig hornet_common_config - @echo '======= Configuring for TP-Link TL-MR10U at:' `date` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -374,7 +376,7 @@ mr10u_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 mr13u_config : unconfig hornet_common_config - @echo '======= Configuring for TP-Link TL-MR13U at:' `date` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -385,7 +387,7 @@ mr13u_config : unconfig hornet_common_config @./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` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -410,7 +412,7 @@ wr740n_v4_config : unconfig hornet_common_config @./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` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -437,7 +439,7 @@ mr3220_v2_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 dir505_config : unconfig hornet_common_config - @echo '======= Configuring for D-Link DIR-505 at:' `date` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -452,7 +454,7 @@ dir505_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 gs_oolite_v1_dev_config : unconfig hornet_common_config - @echo '======= Configuring for GS-Oolite v1 with dev board at:' `date` '=======' + @/bin/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 GPIO_SYS_LED_BIT 27" >> include/config.h @echo "#define GPIO_SYS_LED_ON 0" >> include/config.h @@ -469,7 +471,7 @@ gs_oolite_v1_dev_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 carambola2_config : unconfig hornet_common_config - @echo '======= Configuring for 8devices Carambola 2 at:' `date` '=======' + @/bin/echo -e '\e[32m> Configuring for 8devices Carambola 2 at:' `date` '\e[0m' @echo "#define CONFIG_FOR_8DEVICES_CARAMBOLA2 1" >> include/config.h # Carambola 2 uses uncompressed version @@ -491,7 +493,7 @@ carambola2_config : unconfig hornet_common_config @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 dragino_v2_ms14_config : unconfig hornet_common_config - @echo '======= Configuring for Dragino Dragino v2 (MS14) at:' `date` '=======' + @/bin/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 "#undef COMPRESSED_UBOOT" >> include/config.h @echo "#define GPIO_WLAN_LED_BIT 0" >> include/config.h @@ -517,7 +519,7 @@ wasp_common_config : common_config @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` '=======' + @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WDR3600/43x0 at:' `date` '\e[0m' @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 @@ -541,7 +543,7 @@ wdr3600_43x0_config : unconfig wasp_common_config @./mkconfig -a db12x mips mips db12x ar7240 ar7240 wdr3500_config : unconfig wasp_common_config - @echo '======= Configuring for TP-Link TL-WDR3500 at:' `date` '=======' + @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WDR3500 at:' `date` '\e[0m' @echo "#define CONFIG_FOR_TPLINK_WDR3500_V1 1" >> include/config.h @echo "#define DDR2_32BIT_SUPPORT 1" >> include/config.h @echo "#define CFG_ATHRS27_PHY 1" >> include/config.h @@ -572,7 +574,7 @@ wdr3500_config : unconfig wasp_common_config @./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` '=======' + @/bin/echo -e '\e[32m> Configuring for TP-Link TL-MR3420 v2 at:' `date` '\e[0m' @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 @@ -604,7 +606,7 @@ mr3420_v2_config : unconfig wasp_common_config @./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` '=======' + @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WR841N/D v8 at:' `date` '\e[0m' @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 @@ -634,7 +636,7 @@ wr841n_v8_config : unconfig wasp_common_config @./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` '=======' + @/bin/echo -e '\e[32m> Configuring for TP-Link TL-WA830RE/TL-WA801ND v2 at:' `date` '\e[0m' @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 @@ -660,7 +662,7 @@ wa830re_v2_wa801nd_v2_config : unconfig wasp_common_config ######################################################################### clean: - @echo Making $@ + @/bin/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 \ @@ -671,7 +673,7 @@ clean: @rm -f bootstrap bootstrap.bin tuboot.bin u-boot.lzimg u-boot.bin.lzma bootstrap.map clobber: clean - @echo Making $@ + @/bin/echo -e "\e[32m> Making $@...\e[0m" @find . -type f \( -name .depend \ -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \ -print0 \ -- 2.25.1