-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 830 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 830 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
.PHONY: prepare umake ninja
define build-dpdk
docker run --rm -it --privileged -w/dpdk \
--env UMAKE_CONFIG_MINIO_URL=${UMAKE_CONFIG_MINIO_URL} \
--env UMAKE_CONFIG_MINIO_ACCESS_KEY=${UMAKE_CONFIG_MINIO_ACCESS_KEY} \
--env UMAKE_CONFIG_MINIO_SECRET_KEY=${UMAKE_CONFIG_MINIO_SECRET_KEY} -v`pwd`:/dpdk dpdk-builder bash -c "$(1)"
endef
prepare:
docker build -t dpdk-builder - < Dockerfile
docker run --rm -it -w/dpdk -v`pwd`:/dpdk dpdk-builder meson build && python3.6 parse_ninja.py
umake:
# --privileged - for some reason strace needs --privileged mode
$(call build-dpdk, time umake)
umake-local:
sudo rm -rf .umake/db.pickle
$(call build-dpdk, time umake)
umake-remote:
sudo rm -rf .umake/
$(call build-dpdk, time umake)
ninja:
$(call build-dpdk, cd build && time ninja)
enter:
$(call build-dpdk, bash)