summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build1
-rw-r--r--pcb/meson.build14
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: [