From cec58f88397b784eb5cc630fd2532d7f72da3c72 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 28 Jul 2025 15:50:46 +0200 Subject: pcb: Add ERC report to build and deploy trees The report of the KiCad electrical rules check (ERC) is added with this commit to the default build and also written to the deploy tree. Since there are still minor issues a failing ERC will not yet break the build. This will be introduced later by adding the `--exit-code-violations` flag to the `kicad-cli sch erc` call. --- pcb/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pcb') diff --git a/pcb/meson.build b/pcb/meson.build index 7483cd0..b6a3060 100644 --- a/pcb/meson.build +++ b/pcb/meson.build @@ -20,6 +20,20 @@ schematic = custom_target( depend_files: schematic_files, ) +erc_report = custom_target( + input: 'iot-contact.kicad_sch', + output: 'erc-report.txt', + command: [ + 'kicad-cli', + 'sch', + 'erc', + '--severity-all', + '--output', '@OUTPUT@', + '@INPUT@', + ], + depend_files: schematic_files, +) + bom = custom_target( output: ['bill-of-materials.csv'], command: [ -- cgit v1.2.3-70-g09d2