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:
parent
e2fc37fa17
commit
2061167bd9
1
Makefile
1
Makefile
|
@ -188,6 +188,7 @@ endef
|
||||||
|
|
||||||
$(BINODIR)/%.bin: $(IMAGEODIR)/%.out
|
$(BINODIR)/%.bin: $(IMAGEODIR)/%.out
|
||||||
@mkdir -p $(BINODIR)
|
@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)
|
$(ESPTOOL) elf2image --flash_mode dio --flash_freq 40m $< -o $(FIRMWAREDIR)
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
Loading…
Reference in New Issue