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) #############################################################