-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (27 loc) · 723 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (27 loc) · 723 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
include simulation_utility/Makefile
# First extra target is the device, e.g. "make build-for jetsonnano" -> ARGS=jetsonnano
ifneq ($(filter build-for,$(MAKECMDGOALS)),)
_device := $(firstword $(filter-out build-for,$(MAKECMDGOALS)))
endif
ifneq ($(_device),)
ARGS := $(_device)
else
ARGS ?= pi5
endif
BLITZ_USER ?= ubuntu
BLITZ_PASSWORD ?= ubuntu
BLITZ_UID ?= 1000
BLITZ_GID ?= 1000
export BLITZ_USER
export BLITZ_PASSWORD
export BLITZ_UID
export BLITZ_GID
build-all:
COMPILE_ALL=true docker-compose up --build
build-for:
COMPILE_ALL=false FOR_X=$(ARGS) docker-compose up --build
# Swallow the device goal so "make build-for jetsonnano" does not fail on "jetsonnano".
ifneq ($(_device),)
$(_device):
@:
endif