aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee/tools/templates')
-rw-r--r--src/ee/tools/templates/build.ninja.j211
1 files changed, 9 insertions, 2 deletions
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