forked from Mesh4all/m4a-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 778 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
# With HomeBrew into MacOS systems make is installed as "gmake"
ifeq ($(shell uname -s), Darwin)
MAKE_CMD := gmake
else
MAKE_CMD := make
endif
all:
- $(MAKE_CMD) -C firmware
flash:
- $(MAKE_CMD) -C firmware flash
term:
- $(MAKE_CMD) -C firmware term
clean:
- $(MAKE_CMD) -C firmware clean
menuconfig:
- $(MAKE_CMD) -C firmware menuconfig
install-boot:
- $(MAKE_CMD) EXTERNAL_BOARD_DIRS=$(CURDIR)/boards -C RIOT/bootloaders/riotboot_dfu flash
@echo Please connect in the DFU mode. Change to the port Target and them run:
@echo + make update
update:
- FEATURES_REQUIRED=riotboot USEMODULE=usbus_dfu $(MAKE_CMD) M4ABOOT=1 -C firmware all riotboot/flash-slot0
docs:
cd doc/doxygen && make
-include makefiles/tools/m4agen.inc.mk
-include makefiles/tests.inc.mk