-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 979 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: init # Init local environemnt
init:
uv sync
.PHONY: clean # Clean/delete the builds
define soc_target
.PHONY: $(1) # Build RTLIL for the design
$(strip $(1))/pins.lock:
@CHIPFLOW_ROOT=$(strip $(1)) PYTHONPATH=$PYTHONPATH:${PWD} uv run chipflow pin lock
$(1): $(strip $(1))/pins.lock
@CHIPFLOW_ROOT=$(strip $(1)) PYTHONPATH=$PYTHONPATH:${PWD} uv run chipflow silicon prepare
.PHONY: $(1)-submit # Submit RTLIL for build
$(1)-submit: $(1)
@CHIPFLOW_ROOT=$(strip $(1)) PYTHONPATH=$PYTHONPATH:${PWD} uv run chipflow silicon submit
.PHONY: $(1)-submit-wait # Submit RTLIL for build
$(1)-submit-wait: $(1)
@CHIPFLOW_ROOT=$(strip $(1)) PYTHONPATH=$PYTHONPATH:${PWD} uv run chipflow silicon submit --wait
.PHONY: $(1)-clean # clean the design
$(1)-clean:
rm -fr $(strip $(1))/build
.PHONY: $(1)-lint
$(1)-lint:
cd $(strip $(1))/design && uv run --group lint pycodestyle --config=../../.pycodestyle .
clean: $(1)-clean
endef
$(eval $(call soc_target, upcounter))