diff options
author | xengineering <me@xengineering.eu> | 2025-07-28 15:50:46 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-07-28 15:50:46 +0200 |
commit | cec58f88397b784eb5cc630fd2532d7f72da3c72 (patch) | |
tree | 6e04eec39a9dfccafb8cdc5a14ea45dc03c8d0aa | |
parent | ce098756d79d8e4240bedc2bd74ff9a3a77fcedb (diff) | |
download | iot-contact-cec58f88397b784eb5cc630fd2532d7f72da3c72.tar iot-contact-cec58f88397b784eb5cc630fd2532d7f72da3c72.tar.zst iot-contact-cec58f88397b784eb5cc630fd2532d7f72da3c72.zip |
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.
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | pcb/meson.build | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 15b4883..f9443ed 100644 --- a/meson.build +++ b/meson.build @@ -23,6 +23,7 @@ artifacts = [ bom, simulation, kicad_pcb, + erc_report, ] custom_target( 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: [ |