Skip to content

Commit 8bcd5bf

Browse files
committed
variables: DESIGN_DIR is overrideable
Plus some driveby cleanup and making things a bit more consistent. By default in Makefile DESIGN_DIR points to the DESIGN_CONFIG dir, but it can be useful to override it, w.r.t. rules.json and metadata.json support in bazel-orfs. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 2a31587 commit 8bcd5bf

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ DESIGN_CONFIG ?= ./designs/nangate45/gcd/config.mk
8787
export DESIGN_CONFIG
8888
include $(DESIGN_CONFIG)
8989

90-
export DESIGN_DIR = $(dir $(DESIGN_CONFIG))
90+
export DESIGN_DIR ?= $(dir $(DESIGN_CONFIG))
9191

9292
# default value "base" is duplicated from variables.yaml because we need it
9393
# earlier in the flow for BLOCKS. BLOCKS is a feature specific to the

flow/designs/gf55/aes/config.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
DESIGN_DIR := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
3-
42
export DESIGN_NICKNAME = aes
53
export DESIGN_NAME = aes_cipher_top
64
export PLATFORM = gf55

flow/designs/intel16/aes/config.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
DESIGN_DIR := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
21
DESIGN_PDK_HOME := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
32

43
export DESIGN_NICKNAME = aes

flow/designs/intel16/ibex/config.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
DESIGN_DIR := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
21
DESIGN_PDK_HOME := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
32

43
export DESIGN_NICKNAME = ibex

flow/designs/intel16/jpeg/config.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
DESIGN_DIR := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
21
DESIGN_PDK_HOME := $(realpath $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
32

43
export DESIGN_NICKNAME = jpeg

0 commit comments

Comments
 (0)