From e749894fe2df4c0b65ccf50f2c31284a60ed2756 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 7 Jan 2025 19:01:50 +0100 Subject: 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. --- pcb/pcb.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pcb') 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 $@ $< -- cgit v1.2.3-70-g09d2