-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (24 loc) · 854 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
default: | build-gps-speedo flash-gps-speedo
build-gps-speedo:
cd spark-firmware/main && \
make PLATFORM=photon APPDIR=$(CURDIR)/src
clean-gps-speedo:
cd spark-firmware/main && \
make PLATFORM=photon APPDIR=$(CURDIR)/src clean
flash-gps-speedo:
cd spark-firmware/main && \
export PARTICLE_SERIAL_DEV=/dev/ttyACM0 && \
make PLATFORM=photon APPDIR=$(CURDIR)/src program-dfu
first-time-setup: | build-spark-firmware flash-spark-firmware set-up-wifi
build-spark-firmware:
cd spark-firmware/modules && \
make PLATFORM=photon clean all
flash-spark-firmware:
cd spark-firmware/modules && \
export PARTICLE_SERIAL_DEV=/dev/ttyACM0 && \
make PLATFORM=photon program-dfu
# If you don't do this, the DFU loaded application
# firmware will not start. Weird, but true.
set-up-wifi:
@echo Preess 'w' and set up the WiFi
screen /dev/ttyACM0