From 79ee5e3c64c0140a61324914d24049478a9cf7f5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 28 May 2019 14:47:24 +0200 Subject: create-bom: Don't skip unmatched parts from the BOM. part-validate-parts: Read parts from the schematic, BOM and supplier's parts for even better rules. Enhancing footprint rule to check that the BOM part has the same footprint. --- src/ee/tools/templates/build.ninja.j2 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/ee/tools/templates') diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2 index dbfe8f0..206a487 100644 --- a/src/ee/tools/templates/build.ninja.j2 +++ b/src/ee/tools/templates/build.ninja.j2 @@ -43,7 +43,7 @@ rule part-find-requirements command = $ee part-find-requirements {{ log }} --in $in --out $out $report rule part-validate-parts - command = $ee part-validate-parts {{ log }} --in $in --out $out + command = $ee part-validate-parts {{ log }} --bom $bom --sch $sch --report $out --part-db $part_dbs rule digikey-search-parts command = $ee digikey-search-parts {{ log }} --in $in --out $out @@ -102,12 +102,17 @@ build ee/sch.xml: part-apply-souffle-post ee/kicad/souffle/out/fact.csv work = ee/kicad/souffle {%- endif %} -build $report_dir/part-validate-parts.rst: part-validate-parts ee/sch.xml +build $report_dir/part-validate-parts.rst: part-validate-parts ee/bom.xml ee/sch.xml + sch = ee/sch.xml + bom = ee/bom.xml + part_dbs ={%- for p in part_dbs %} {{ p }}.xml{% endfor %} {%- set reports=reports+["$report_dir/part-validate-parts.rst"] %} +{#- TODO: complete build ee/requirements.xml | $report_dir/requirements.rst: part-find-requirements ee/sch.xml report = --report $report_dir/requirements.rst {%- set reports=reports+["$report_dir/requirements.rst"] %} +#} {% for s in distributors %} {%- set cfg = project.cfg["supplier:" + s] if "supplier:" + s in project.cfg else None %} @@ -155,12 +160,14 @@ build ee/bom.xml | $report_dir/bom.rst: create-bom ee/sch.xml {%- for p in part_ {%- endif %} {%- set reports=reports+["$report_dir/bom.rst"] %} +{#- TODO: complete build ee/orders/index.xml: split-parts-by-supplier ee/bom.xml {%- for p in part_dbs %} {{ p }}.xml{% endfor %} order = ee/bom.xml part_dbs ={%- for p in part_dbs %} --part-db {{ p }}.xml{% endfor %} out_dir = ee/orders default ee/orders/index.xml +#} rule seeed-download-opl description = seeed-download-opl $opl -- cgit v1.2.3