-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
59 lines (42 loc) · 1.03 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
TARGETS = vm_minimal vm_multi
include $(wildcard projects/*/Makefile.tii_sel4_build)
all:
@echo Possible make targets are:
@echo
@for target in $(TARGETS); do echo " $$target"; done
@echo
%:: configs/%
@cp $< .config
BUILD_CACHE_DIR ?= $(shell realpath .tii_sel4_build)
export BUILD_CACHE_DIR
DOCKER_EXPORT = CAMKES_VM_APP
export DOCKER_EXPORT
$(BUILD_CACHE_DIR)/stack:
mkdir -p $(BUILD_CACHE_DIR)/stack
@scripts/build_cache.sh
build_cache: $(BUILD_CACHE_DIR)/stack
build_camkes: .config build_cache
@scripts/build_camkes.sh
build_sel4test: .config
@scripts/build_sel4test.sh
vm_%: phony_explicit
CAMKES_VM_APP=$@ make build_camkes
sel4test:
make build_sel4test
phony_explicit:
.PHONY: \
all \
phony_explicit \
docker
docker:
docker build \
--build-arg UID=$(shell id -u) \
--build-arg GID=$(shell id -g) \
--build-arg USER=$(shell id -u -n) \
--build-arg GROUP=$(shell id -u -n) \
--build-arg HOME=$(HOME) \
docker -t tiiuae/build:latest
linux-image:
@scripts/build_yocto.sh
shell:
@docker/enter_container.sh