Skip to content

Commit

Permalink
sw: Include dependency files only on MAKECMDGOALS which need it
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 5, 2024
1 parent 3c521f1 commit 9710ab9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion target/snitch_cluster/sw/apps/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ $(ELF): $(SRCS) $(DEP) $(LD_DEPS) | $($(APP)_BUILD_DIR)
$(DUMP): $(ELF) | $($(APP)_BUILD_DIR)
$(RISCV_OBJDUMP) $(RISCV_OBJDUMP_FLAGS) $< > $@

ifneq ($(filter-out clean%,$(MAKECMDGOALS)),)
ifneq ($(filter sw $(APP) $(ALL_OUTPUTS),$(MAKECMDGOALS)),)
-include $(DEP)
endif
2 changes: 1 addition & 1 deletion target/snitch_cluster/sw/runtime/runtime.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ $(SNRT_DUMP): $(SNRT_LIB) | $(SNRT_BUILDDIR)

$(SNRT_DEPS): | $(SNRT_HAL_HDRS)

ifneq ($(filter-out clean%,$(MAKECMDGOALS)),)
ifneq ($(filter sw runtime $(SNRT_OUTPUTS),$(MAKECMDGOALS)),)
-include $(SNRT_DEPS)
endif
2 changes: 1 addition & 1 deletion target/snitch_cluster/sw/tests/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ $(TESTS_BUILDDIR)/%.dump: $(TESTS_BUILDDIR)/%.elf | $(TESTS_BUILDDIR)

$(TEST_DEPS): | $(SNRT_HAL_HDRS)

ifneq ($(filter-out clean%,$(MAKECMDGOALS)),)
ifneq ($(filter sw tests $(TEST_OUTPUTS),$(MAKECMDGOALS)),)
-include $(DEP)
endif

0 comments on commit 9710ab9

Please sign in to comment.