Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ scan:
@rm -rf $(SCAN_DIR)
@mkdir -p $(SCAN_DIR)
@make clean
-@make SCAN=1 -C test scan
-@make SCAN=1 -C benchmark scan
-@make NOCRYPTO=1 SCAN=1 -C tools/whnvmtool scan
-@make NOCRYPTO=1 SCAN=1 -C examples
-@make -j SCAN=1 -C test scan
@$(MAKE) scan_result_check

clean:
Expand Down
4 changes: 3 additions & 1 deletion benchmark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ analyze: $(OBJS_ASM) $(OBJS_C)
scan:$(BUILD_DIR)
@echo "Running scan-build static analysis"
@mkdir -p $(WOLFHSM_DIR)/scan_out/
@scan-build --status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)
@scan-build --exclude $(WOLFSSL_DIR)/wolfcrypt \
--exclude $(WOLFSSL_DIR)/src \
--status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)

$(BUILD_DIR):
$(CMD_ECHO) mkdir -p $(BUILD_DIR)
Expand Down
4 changes: 3 additions & 1 deletion examples/posix/wh_posix_client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ analyze: $(OBJS_ASM) $(OBJS_C)
scan:$(BUILD_DIR)
@echo "Running scan-build static analysis"
@mkdir -p $(WOLFHSM_DIR)/scan_out/
@scan-build --status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)
@scan-build --exclude $(WOLFSSL_DIR)/wolfcrypt \
--exclude $(WOLFSSL_DIR)/src \
--status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)

clean:
@echo "Cleaning build files"
Expand Down
4 changes: 3 additions & 1 deletion examples/posix/wh_posix_server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ analyze: $(OBJS_ASM) $(OBJS_C)
scan:$(BUILD_DIR)
@echo "Running scan-build static analysis"
@mkdir -p $(WOLFHSM_DIR)/scan_out/
@scan-build --status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)
@scan-build --exclude $(WOLFSSL_DIR)/wolfcrypt \
--exclude $(WOLFSSL_DIR)/src \
--status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)

$(BUILD_DIR):
$(CMD_ECHO) mkdir -p $(BUILD_DIR)
Expand Down
4 changes: 3 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ analyze:$(OBJS_ASM) $(OBJS_C)
scan:$(BUILD_DIR)
@echo "Running scan-build static analysis"
@mkdir -p $(WOLFHSM_DIR)/scan_out/
@scan-build --status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)
@scan-build --exclude $(WOLFSSL_DIR)/wolfcrypt \
--exclude $(WOLFSSL_DIR)/src \
--status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)

$(BUILD_DIR):
$(CMD_ECHO) mkdir -p $(BUILD_DIR)
Expand Down
4 changes: 3 additions & 1 deletion tools/whnvmtool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ analyze: $(SRC)
scan:
@echo "Running scan-build static analysis"
@mkdir -p $(WOLFHSM_DIR)/scan_out/
@scan-build --status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)
@scan-build --exclude $(WOLFSSL_DIR)/wolfcrypt \
--exclude $(WOLFSSL_DIR)/src \
--status-bugs $(MAKE) analyze 2> $(WOLFHSM_DIR)/scan_out/$(SCAN_LOG)

clean: clean-test
rm -f whNvmImage.bin whNvmImage.hex
Expand Down