Skip to content

Commit 6393aae

Browse files
authored
Merge pull request #3021 from Pinata-Consulting/variables-mk-platform-dir
variables.mk: PLATFORM_DIR can be provided from some non-ORFS location
2 parents 9981923 + ead3273 commit 6393aae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/scripts/variables.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ ifeq ($(origin DESIGN_NAME), undefined)
3737
$(error DESIGN_NAME variable net set.)
3838
endif
3939

40-
ifneq ($(wildcard $(PLATFORM_HOME)/$(PLATFORM)),)
40+
ifneq ($(PLATFORM_DIR),)
41+
else ifneq ($(wildcard $(PLATFORM_HOME)/$(PLATFORM)),)
4142
export PLATFORM_DIR = $(PLATFORM_HOME)/$(PLATFORM)
4243
else ifneq ($(findstring $(PLATFORM),$(PUBLIC)),)
4344
export PLATFORM_DIR = ./platforms/$(PLATFORM)

0 commit comments

Comments
 (0)