From 2061167bd925b0b4197c35ada5476de2e560214d Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Mon, 3 Jul 2017 13:29:47 +1000 Subject: [PATCH] Add check for unresolved-but-unused symbols at build. From what I can tell they *should* be harmless, but I'd rather we keep a neat house in the first place. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 28b69fec..5380a86e 100644 --- a/Makefile +++ b/Makefile @@ -188,6 +188,7 @@ endef $(BINODIR)/%.bin: $(IMAGEODIR)/%.out @mkdir -p $(BINODIR) + @$(NM) $< | grep -w U && { echo "Firmware has unresolved (but unused) symbols - should be fixed nevertheless!"; exit 1; } || true $(ESPTOOL) elf2image --flash_mode dio --flash_freq 40m $< -o $(FIRMWAREDIR) #############################################################