@@ -36,6 +36,7 @@ export PDKPATH?=$(PDK_ROOT)/$(PDK)
36
36
.PHONY : setup
37
37
setup : check_dependencies install-frigate pdk-with-volare setup-cocotb
38
38
39
+
39
40
.PHONY : check_dependencies
40
41
check_dependencies :
41
42
@if [ ! -d " $( PWD) /dependencies" ]; then \
@@ -58,20 +59,6 @@ install-volare:
58
59
./venv/bin/$(PYTHON_BIN ) -m pip install --upgrade --no-cache-dir pip
59
60
./venv/bin/$(PYTHON_BIN ) -m pip install --upgrade --no-cache-dir volare
60
61
61
- # Include mgmt should be cloned by make install repos inside frigate
62
- # .PHONY: install-mcw
63
- # install-mcw:
64
- # if [ -d "$(MGMT_ROOT)" ]; then\
65
- # MAKE_DIR="$(PWD)"; \
66
- # echo "Updating $(MGMT_ROOT)"; \
67
- # cd $(MGMT_ROOT) && \
68
- # git checkout $(MGMT_BRANCH) && git pull; \
69
- # cd "$$MAKE_DIR"; \
70
- # else \
71
- # echo "Cloning $(MGMT_REPO_URL) -b $(MGMT_BRANCH)"; \
72
- # git clone -b $(MGMT_BRANCH) $(MGMT_REPO_URL) $(MGMT_ROOT) --depth=1 --single-branch; \
73
- # fi
74
-
75
62
# Include frigate
76
63
.PHONY : install-frigate
77
64
install-frigate :
@@ -143,13 +130,12 @@ echo-var:
143
130
144
131
145
132
# Harden with Openlane2
146
- OPENLANE2_TAG ?= 2.3.3
133
+ OPENLANE2_TAG ?= 2.3.5
147
134
OPENLANE2_IMAGE_NAME ?= efabless/openlane:$(OPENLANE2_TAG )
148
135
OPENLANE2_RUN_TAG = $(shell date '+% y_% m_% d_% H_% M')
149
136
OPENLANE2_USE_NIX ?= 1
150
137
ROOTLESS ?= 0
151
138
USER_ARGS = -u $$(id -u $$USER ) :$$(id -g $$USER )
152
- designs = $(shell cd $(PROJECT_ROOT ) /openlane && find * -maxdepth 0 -type d)
153
139
current_design = null
154
140
155
141
ifeq ($(ROOTLESS ) , 1)
@@ -208,17 +194,29 @@ list:
208
194
@echo $(designs )
209
195
210
196
# export PYTHONPATH=$(PROJECT_ROOT)/openlane_plugin_Frigate:\$$PYTHONPATH
211
- .PHONY : $(designs )
212
- $(designs ) : export current_design=$@
213
- $(designs ) : % : $(PROJECT_ROOT ) /openlane/% /config.yaml
214
- # $(current_design)
215
- @rm -rf $(PROJECT_ROOT ) /openlane/$* /runs/$(OPENLANE2_RUN_TAG )
197
+ designs = $(shell cd $(PROJECT_ROOT ) /openlane && find * -maxdepth 0 -type d ! -name "user_project_wrapper")
216
198
ifeq ($(OPENLANE2_USE_NIX ) ,1)
217
- nix develop --command openlane $(openlane_args) $(openlane_extra_args)
199
+ openlane_cmd = nix develop --command openlane $(openlane_args ) $(openlane_extra_args )
218
200
else
219
- $(PROJECT_ROOT)/openlane2-venv/bin/python3 -m openlane $(docker_mounts) $(openlane_extra_args) --dockerized $(openlane_args) $(openlane_extra_args)
201
+ openlane_cmd = $(PROJECT_ROOT ) /openlane2-venv/bin/python3 -m openlane $(docker_mounts ) $(openlane_extra_args ) --dockerized $(openlane_args ) $(openlane_extra_args )
220
202
endif
221
- @sh $(PROJECT_ROOT)/openlane/copy_views.sh $(PROJECT_ROOT) $* $(OPENLANE2_RUN_TAG)
203
+
204
+ define run_openlane
205
+ rm -rf $(PROJECT_ROOT ) /openlane/$* /runs/$(OPENLANE2_RUN_TAG )
206
+ $(openlane_cmd ) $1
207
+ endef
208
+
209
+ .PHONY : user_project_wrapper
210
+ user_project_wrapper : % : $(PROJECT_ROOT ) /openlane/user_project_wrapper/config.yaml
211
+ $(call run_openlane,$(PROJECT_ROOT ) /openlane/user_project_wrapper/fixed_config.yaml)
212
+ # $(openlane_cmd) $(PROJECT_ROOT)/openlane/user_project_wrapper/fixed_config.yaml -c "step"=Frigate.CustomApplyDEFTemplate
213
+ sh $(PROJECT_ROOT)/openlane/copy_views.sh $(PROJECT_ROOT) $* $(OPENLANE2_RUN_TAG)
214
+
215
+ .PHONY : $(designs )
216
+ $(designs ) : export current_design=$@
217
+ $(designs ) : % : $(PROJECT_ROOT ) /openlane/% /config.yaml
218
+ $(call run_openlane)
219
+ sh $(PROJECT_ROOT ) /openlane/copy_views.sh $(PROJECT_ROOT ) $* $(OPENLANE2_RUN_TAG )
222
220
223
221
.PHONY : harden
224
222
harden : $(designs )
0 commit comments