Skip to content

Commit d57a0c5

Browse files
committed
Makefile: fix block.mk support when running outside of ORFS folder
block.mk, as is used in designs/asap7/aes-blocks/ didn't work for source folders outside of ORFS: cd myfolder . ~/OpenROAD-flow-scripts/env.sh make -f ~/OpenROAD-flow-scripts/flow/Makefile DESIGN_CONFIG=config.mk Signed-off-by: Øyvind Harboe <[email protected]>
1 parent d012f05 commit d57a0c5

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)