return code should lead to error exit
@@ -159,7 +159,7 @@ $(ACTION_ROOT):
@echo -e "\t using `vivado_hls -v |grep Vivado`"
@make -C `dirname $(ACTION_ROOT)` > $(LOGS_DIR)/create_hls.log
@if [ $$? -ne 0 ]; then \
- echo -e "\t Error: please look into create_hls.log"; \
+ echo -e "\t Error: please look into create_hls.log";exit -1; \
fi
create_environment:
@@ -220,7 +220,7 @@ xsim:
@cd $(SNAP_HARDWARE_ROOT)/sim/xsim; \
./top.sh > $(LOGS_DIR)/compile_$(SIMULATOR).log 2>&1; \
if [ $$? -ne 0 ]; then \
- echo -e "\t Error: please look into compile_$(SIMULATOR).log"; \
+ echo -e "\t Error: please look into compile_$(SIMULATOR).log";exit -1; \
fi
@echo -e "\t[BUILD xsim..........] done `date`"
@@ -234,7 +234,7 @@ irun:
@cd $(SNAP_HARDWARE_ROOT)/sim/ies;\
./top.sh > $(LOGS_DIR)/compile_$(SIMULATOR).log 2>&1; \
if [ $$? -ne 0 ]; then \
- echo -e "\t Error: please look into compile_$(SIMULATOR).log"; \
+ echo -e "\t Error: please look into compile_$(SIMULATOR).log";exit -1; \
fi
@echo -e "\t[BUILD irun..........] done `date`"
@@ -248,7 +248,7 @@ questa:
@cd $(SNAP_HARDWARE_ROOT)/sim/questa; \
./top.sh 4> $(LOGS_DIR)/compile_$(SIMULATOR).log 2>&1; \
if [ $$? -ne 0 ]; then \
- echo -e "\t Error: please look into compile_$(SIMULATOR).log"; \
+ echo -e "\t Error: please look into compile_$(SIMULATOR).log";exit -1; \
fi
@echo -e "\t[BUILD questa........] done `date`"
