Skip to content

Commit 8184f71

Browse files
authored
Merge pull request #2340 from Pinata-Consulting/makefile-block-snag
Makefile: fix block.mk support when running outside of ORFS folder
2 parents d012f05 + d57a0c5 commit 8184f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ ifeq ($(wildcard $(3)),)
377377
# each macro.
378378
block := $(patsubst ./designs/$(PLATFORM)/$(DESIGN_NICKNAME)/%,%,$(dir $(3)))
379379
$(1) $(2) &:
380-
$$(UNSET_AND_MAKE) DESIGN_NAME=${block} DESIGN_NICKNAME=$$(DESIGN_NICKNAME)_${block} DESIGN_CONFIG=./designs/$$(PLATFORM)/$$(DESIGN_NICKNAME)/block.mk generate_abstract
380+
$$(UNSET_AND_MAKE) DESIGN_NAME=${block} DESIGN_NICKNAME=$$(DESIGN_NICKNAME)_${block} DESIGN_CONFIG=$$(shell dirname $$(DESIGN_CONFIG))/block.mk generate_abstract
381381
else
382382
# There is a unique config.mk for this Verilog module
383383
$(1) $(2) &:

0 commit comments

Comments
 (0)