summaryrefslogtreecommitdiff
path: root/pcb
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-01-07 19:01:50 +0100
committerxengineering <me@xengineering.eu>2025-01-07 19:01:50 +0100
commite749894fe2df4c0b65ccf50f2c31284a60ed2756 (patch)
tree06ac8da0c081894fa77fc70aa96633624261fc6d /pcb
parentde516a2d54f7d0e047fcdb6c31401a8dd5047e9a (diff)
downloadsoundbox-e749894fe2df4c0b65ccf50f2c31284a60ed2756.tar
soundbox-e749894fe2df4c0b65ccf50f2c31284a60ed2756.tar.zst
soundbox-e749894fe2df4c0b65ccf50f2c31284a60ed2756.zip
pcb: Add deactivated target for ERC report
In this early stage of development the electrical rules check (ERC) fails with a huge amount of errors. Nevertheless it is useful to have an early look at the ERC output.
Diffstat (limited to 'pcb')
-rw-r--r--pcb/pcb.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcb/pcb.mk b/pcb/pcb.mk
index 0d4376f..8f6a3c3 100644
--- a/pcb/pcb.mk
+++ b/pcb/pcb.mk
@@ -2,6 +2,7 @@ SOUNDBOX_KICAD_SCH := pcb/soundbox.kicad_sch
PCB_BUILD_DIR := $(BUILD_DIR)/pcb
BOM := $(PCB_BUILD_DIR)/bom.csv
SCHEMATIC_PDF := $(PCB_BUILD_DIR)/schematic.pdf
+ERC_REPORT := $(PCB_BUILD_DIR)/erc.rpt
.PHONY: pcb
pcb: $(BOM) $(SCHEMATIC_PDF)
@@ -16,3 +17,7 @@ $(BOM): $(SOUNDBOX_KICAD_SCH)
$(SCHEMATIC_PDF): $(SOUNDBOX_KICAD_SCH)
mkdir -p $(dir $@)
kicad-cli sch export pdf --output $@ $<
+
+$(ERC_REPORT): $(SOUNDBOX_KICAD_SCH)
+ mkdir -p $(dir $@)
+ kicad-cli sch erc --exit-code-violations --output $@ $<