@@ -41,7 +41,7 @@ SHELL_HACK := $(shell mkdir -p $(BIN_DIR)/linux-x86-softfp $(BIN_DIR)/riscv32 $(
4141#  $(3): name showing in terminal
4242define  fetch-releases-tag 
4343    $(if  $(wildcard  $(BIN_DIR ) /$(2 ) ) , \ 
44-         $(info  $(3 )  is found. Skipping downloading.) , \ 
44+         $(info  $(call  warnx,  $( 3 ))  ) , \ 
4545        $(eval  LATEST_RELEASE := $(shell  wget -q https://api.github.com/repos/sysprog21/rv32emu-prebuilt/releases -O- \   
4646                                    | grep '"tag_name"' \ 
4747                                    | grep "$(1 ) " \ 
@@ -59,7 +59,7 @@ ifeq ($(call has, PREBUILT), 1)
5959    else ifeq ($(call has, ARCH_TEST), 1)
6060        $(call fetch-releases-tag,sail,rv32emu-prebuilt-sail-$(HOST_PLATFORM),Sail model)
6161    else
62-         $(call fetch-releases-tag,ELF,rv32emu-prebuilt.tar.gz,Prebuilt benchmark )
62+         $(call fetch-releases-tag,ELF,rv32emu-prebuilt.tar.gz,Prebuilt blob )
6363    endif
6464
6565    PREBUILT_BLOB_URL  = https://github.com/sysprog21/rv32emu-prebuilt/releases/download/$(LATEST_RELEASE ) 
@@ -112,14 +112,16 @@ endif
112112
113113ifeq  ($(call  has, ARCH_TEST) , 1)
114114	$(Q)if [ "$(RES)" = "1" ]; then \
115- 	    $(PRINTF) "\n$(YELLOW)SHA-1 verification failed! Re-fetching prebuilt binaries from \"rv32emu-prebuilt\" ...\n$(NO_COLOR)"; \
115+ 	    $(call warn, "SHA-1 verification failed!"); \
116+ 	    $(PRINTF) "Re-fetching prebuilt binaries from \"rv32emu-prebuilt\" ...\n"; \
116117	    wget -q --show-progress $(PREBUILT_BLOB_URL)/$(RV32EMU_PREBUILT_TARBALL) -O build/$(RV32EMU_PREBUILT_TARBALL); \
117118	else \
118119	    $(call notice, [OK]); \
119120	fi
120121else 
121122	$(Q)if [ "$(RES)" = "1" ]; then \
122- 	    $(PRINTF) "\n$(YELLOW)SHA-1 verification failed! Re-fetching prebuilt binaries from \"rv32emu-prebuilt\" ...\n$(NO_COLOR)"; \
123+ 	    $(call warn, "SHA-1 verification failed!"); \
124+ 	    $(PRINTF) "Re-fetching prebuilt binaries from \"rv32emu-prebuilt\" ...\n"; \
123125	    wget -q --show-progress $(PREBUILT_BLOB_URL)/$(RV32EMU_PREBUILT_TARBALL) -O build/$(RV32EMU_PREBUILT_TARBALL); \
124126	    tar --strip-components=1 -zxf build/$(RV32EMU_PREBUILT_TARBALL) -C build; \
125127	else \
@@ -172,22 +174,22 @@ ifeq ($(call has, SYSTEM), 1)
172174		$(Q)wget -q -O $(BIN_DIR)/sha1sum-linux-image $(PREBUILT_BLOB_URL)/sha1sum-linux-image
173175		$(Q)$(call notice, [OK])
174176    else
175- 		$(Q)$(PRINTF) "Skipped\n" 
177+ 		$(Q)$(call warn, skipped) 
176178    endif
177179else  ifeq ($(call has, ARCH_TEST), 1)
178180    ifeq ($(wildcard $(BIN_DIR)/rv32emu-prebuilt-sail-$(HOST_PLATFORM)),)
179181		$(Q)wget -q -O $(BIN_DIR)/rv32emu-prebuilt-sail-$(HOST_PLATFORM).sha $(PREBUILT_BLOB_URL)/rv32emu-prebuilt-sail-$(HOST_PLATFORM).sha
180182		$(Q)$(call notice, [OK])
181183    else
182- 		$(Q)$(PRINTF) "Skipped\n" 
184+ 		$(Q)$(call warn, skipped) 
183185    endif
184186else 
185187    ifeq ($(wildcard $(BIN_DIR)/rv32emu-prebuilt.tar.gz),)
186188		$(Q)wget -q -O $(BIN_DIR)/sha1sum-linux-x86-softfp $(PREBUILT_BLOB_URL)/sha1sum-linux-x86-softfp
187189		$(Q)wget -q -O $(BIN_DIR)/sha1sum-riscv32 $(PREBUILT_BLOB_URL)/sha1sum-riscv32
188190		$(Q)$(call notice, [OK])
189191    else
190- 		$(Q)$(PRINTF) "Skipped\n" 
192+ 		$(Q)$(call warn , skipped) 
191193    endif
192194endif 
193195endif 
0 commit comments