forked from chipsalliance/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 693 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 693 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
init:
git submodule update --init
patch:
find patches -type f | awk -F/ '{print("(echo "$$0" && cd dependencies/" $$2 " && git apply -3 --ignore-space-change --ignore-whitespace ../../" $$0 ")")}' | sh
depatch:
git submodule foreach 'git reset --hard && git clean -fdx'
bump:
git submodule foreach git stash
git submodule update --remote
git add dependencies
update-patches:
rm -rf patches
sed '/BEGIN-PATCH/,/END-PATCH/!d;//d' readme.md | awk '{print("mkdir -p patches/" $$1 " && wget " $$2 " -P patches/" $$1 )}' | parallel
git add patches
bsp:
mill -i mill.bsp.BSP/install
compile:
mill -i -j 0 __.compile
test:
mill -i -j 0 sanitytests.rocketchip
clean:
git clean -fd