diff options
| author | Ekaitz Zárraga <ekaitz@elenq.tech> | 2023-11-19 15:36:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 15:36:52 +0100 |
| commit | 735bbc97d7cdf8564f8f7efe16f2a14d48cd0e28 (patch) | |
| tree | abd22d507af244e7a40b4aafa37f3a3f1f489f97 /make.mk | |
| parent | f77ddc83b8b1ac5b9516496d0f9ead7865026ce5 (diff) | |
| parent | 50e3da11bd03434cead1314cb5292789f58e687d (diff) | |
| download | Sensor-Watch-735bbc97d7cdf8564f8f7efe16f2a14d48cd0e28.tar.gz Sensor-Watch-735bbc97d7cdf8564f8f7efe16f2a14d48cd0e28.tar.bz2 Sensor-Watch-735bbc97d7cdf8564f8f7efe16f2a14d48cd0e28.zip | |
Merge branch 'main' into couch-2-5k
Diffstat (limited to 'make.mk')
| -rw-r--r-- | make.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -62,6 +62,7 @@ CFLAGS += -MD -MP -MT $(BUILD)/$(*F).o -MF $(BUILD)/$(@F).d LDFLAGS += -mcpu=cortex-m0plus -mthumb LDFLAGS += -Wl,--gc-sections LDFLAGS += -Wl,--script=$(TOP)/watch-library/hardware/linker/saml22j18.ld +LDFLAGS += -Wl,--print-memory-usage LIBS += -lm @@ -207,6 +208,10 @@ ifeq ($(LED), BLUE) CFLAGS += -DWATCH_IS_BLUE_BOARD endif +ifndef COLOR +$(error Set the COLOR variable to RED, BLUE, or GREEN depending on what board you have.) +endif + ifeq ($(COLOR), BLUE) CFLAGS += -DWATCH_IS_BLUE_BOARD endif |
