forked from CARV-ICS-FORTH/qemu-riscv64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (23 loc) · 1.28 KB
/
Makefile
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
35
36
SHELL=/bin/bash
REGISTRY_NAME?=carvicsforth
VERSION?=1.2.0
.PHONY: all launcher launcher-rvv-0.7.1 console data launcher-push launcher-rvv-0.7.1-push console-push data-push containers containers-push
all: containers
launcher:
(cd launcher && docker build -t $(REGISTRY_NAME)/qemu-riscv64-launcher:$(VERSION) .)
launcher-rvv-0.7.1:
(cd launcher-rvv-0.7.1 && docker build -t $(REGISTRY_NAME)/qemu-riscv64-launcher-rvv-0.7.1:$(VERSION) .)
console:
(cd console && docker build -t $(REGISTRY_NAME)/qemu-riscv64-console:$(VERSION) .)
data:
(cd data && for i in `ls`; do (cd $$i && make container); done)
launcher-push:
(cd launcher && docker buildx build --platform linux/amd64,linux/arm64 --push -t $(REGISTRY_NAME)/qemu-riscv64-launcher:$(VERSION) .)
launcher-rvv-0.7.1-push:
(cd launcher-rvv-0.7.1 && docker buildx build --platform linux/amd64,linux/arm64 --push -t $(REGISTRY_NAME)/qemu-riscv64-launcher-rvv-0.7.1:$(VERSION) .)
console-push:
(cd console && docker buildx build --platform linux/amd64,linux/arm64 --push -t $(REGISTRY_NAME)/qemu-riscv64-console:$(VERSION) .)
data-push:
(cd data && for i in `ls`; do (cd $$i && make container-push); done)
containers: launcher launcher-rvv-0.7.1 console #data
containers-push: launcher-push launcher-rvv-0.7.1-push console-push #data-push