-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 761 Bytes
/
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
# default board and architecture
TOCK_BOARD ?= storm
TOCK_ARCH ?= cortex-m4
# rules for making the kernel
.PHONY: all fmt format
all: $(TOCK_BOARD)
$(TOCK_BOARD): boards/$(TOCK_BOARD)/
$(MAKE) -C $<
clean:: boards/$(TOCK_BOARD)/
$(MAKE) clean -C $<
doc: boards/$(TOCK_BOARD)/
$(MAKE) doc -C $<
debug: boards/$(TOCK_BOARD)/
$(MAKE) debug -C $<
program: boards/$(TOCK_BOARD)/
$(MAKE) program -C $<
flash: boards/$(TOCK_BOARD)/
$(MAKE) flash -C $<
fmt format:
@./tools/run_cargo_fmt.sh
list list-boards list-platforms:
@./tools/list_boards.sh
# rule for making userland example applications
# automatically upload after making
examples/%: userland/examples/%
$(MAKE) -C $< TOCK_ARCH=$(TOCK_ARCH)
$(MAKE) program -C $< TOCK_ARCH=$(TOCK_ARCH)