forked from tock/libtock-c
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.mk
More file actions
27 lines (21 loc) · 720 Bytes
/
Program.mk
File metadata and controls
27 lines (21 loc) · 720 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
################################################################################
##
## Makefile for loading applications onto a Tockloader compatible board.
##
################################################################################
$(call check_defined, BUILDDIR)
$(call check_defined, PACKAGE_NAME)
TOCKLOADER ?= tockloader
# Upload programs over UART with tockloader.
ifdef PORT
TOCKLOADER_GENERAL_FLAGS += --port $(PORT)
endif
.PHONY: program
program: $(BUILDDIR)/$(PACKAGE_NAME).tab
$(TOCKLOADER) $(TOCKLOADER_GENERAL_FLAGS) install $<
.PHONY: flash
flash: $(BUILDDIR)/$(PACKAGE_NAME).tab
$(TOCKLOADER) install $<
.PHONY: install
install: $(BUILDDIR)/$(PACKAGE_NAME).tab
$(TOCKLOADER) install $<