working makefile for folks to test with

This commit is contained in:
Joey Castillo 2025-05-15 09:08:06 -04:00
parent 02c567770d
commit e68424a7cf

View File

@ -1,26 +1,37 @@
# Keep this first line. # Keep this first line.
GOSSAMER_PATH=gossamer GOSSAMER_PATH=gossamer
# Which board are we building for? # Which board are we building for? Commented out to force a choice when building.
# Options are: # Options are:
# - sensorwatch_pro # - sensorwatch_pro
# - sensorwatch_green # - sensorwatch_green
# - sensorwatch_red (also known as Sensor Watch Lite) # - sensorwatch_red (also known as Sensor Watch Lite)
BOARD=sensorwatch_pro # BOARD=sensorwatch_pro
# Sensor Watch will detect the display, unless you are debugging over USB. # Sensor Watch will detect the display, unless you are debugging over USB.
# If you need to force a specific display, set this to the type you want, CLASSIC or CUSTOM # If you need to force a specific display, set this to the type you want, CLASSIC or CUSTOM
FORCE_DISPLAY_TYPE=CUSTOM FORCE_DISPLAY_TYPE=CLASSIC
# Which sensor board? # Which sensor board?
SENSOR=MOTION SENSOR=NONE
# End of user configurable options.
# Support USB features? # Support USB features?
TINYUSB_CDC=1 TINYUSB_CDC=1
# Leave this line here. # Now we're all set to include gossamer's make rules.
include $(GOSSAMER_PATH)/make.mk include $(GOSSAMER_PATH)/make.mk
define n
endef
ifndef BOARD
$(error Build failed: BOARD not defined. Use one of the four options below, depending on your hardware:$n$n make BOARD=sensorwatch_red$n make BOARD=sensorwatch_green$n make BOARD=sensorwatch_blue$n make BOARD=sensorwatch_pro$n$n)
endif
ifeq ($(SENSOR), MOTION) ifeq ($(SENSOR), MOTION)
DEFINES += -DHAS_ACCELEROMETER DEFINES += -DHAS_ACCELEROMETER
endif endif