From a5abf7ff7a105ebfe31b804d1e951b91a6c0a050 Mon Sep 17 00:00:00 2001 From: Navaneeth Bhardwaj Date: Sun, 3 Sep 2023 00:17:45 +0530 Subject: Print memory percentages this gives better idea of memories used. --- make.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'make.mk') diff --git a/make.mk b/make.mk index bf61708c..2870c4f3 100644 --- a/make.mk +++ b/make.mk @@ -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 -- cgit v1.2.3 From c28ba6ef0bfc8f76c156b92b5c0acfdf1df13fcf Mon Sep 17 00:00:00 2001 From: Wesley Aptekar-Cassels Date: Thu, 28 Sep 2023 18:29:32 -0400 Subject: Don't allow building without setting board color. Fixes: #288 --- make.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'make.mk') diff --git a/make.mk b/make.mk index a83108bd..31189c8f 100644 --- a/make.mk +++ b/make.mk @@ -207,6 +207,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 -- cgit v1.2.3