summaryrefslogtreecommitdiffstats
path: root/make.mk
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-04-20 17:18:58 -0400
committerJoey Castillo <joeycastillo@utexas.edu>2022-04-20 17:21:47 -0400
commitb0bdf35d8f6340be04aebe7fbd368418d8c15043 (patch)
treeabf080fb2529452db286673fee1c4772a3006048 /make.mk
parent263e7c6543ab580bed0567b018d1f198f918a64b (diff)
downloadSensor-Watch-b0bdf35d8f6340be04aebe7fbd368418d8c15043.tar.gz
Sensor-Watch-b0bdf35d8f6340be04aebe7fbd368418d8c15043.tar.bz2
Sensor-Watch-b0bdf35d8f6340be04aebe7fbd368418d8c15043.zip
add mechanism for building alternate firmware images
Diffstat (limited to 'make.mk')
-rw-r--r--make.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/make.mk b/make.mk
index 528b0987..ac5be775 100644
--- a/make.mk
+++ b/make.mk
@@ -172,6 +172,11 @@ ifeq ($(LED), BLUE)
CFLAGS += -DWATCH_SWAP_LED_PINS
endif
+ifdef FIRMWARE
+CFLAGS += -DMOVEMENT_FIRMWARE_$(FIRMWARE)=1
+CFLAGS += -DMOVEMENT_FIRMWARE=MOVEMENT_FIRMWARE_$(FIRMWARE)
+endif
+
ifeq ($(BOARD), OSO-FEAL-A1-00)
CFLAGS += -DCRYSTALLESS
endif