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.
This commit is contained in:
Johny Mattsson 2017-07-03 13:29:47 +10:00
parent e2fc37fa17
commit 2061167bd9
1 changed files with 1 additions and 0 deletions

View File

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