diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-23 21:08:36 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-26 21:55:41 +0200 |
commit | 1699cca793c6a8ebc00942557b6764fff6739044 (patch) | |
tree | ee8162390db5a7607298fe5f40841bb131b60542 /src/ee/tools/templates | |
parent | 4afac7dc4c743284e5243428f00928aa7eaacfdc (diff) | |
download | ee-python-1699cca793c6a8ebc00942557b6764fff6739044.tar.gz ee-python-1699cca793c6a8ebc00942557b6764fff6739044.tar.bz2 ee-python-1699cca793c6a8ebc00942557b6764fff6739044.tar.xz ee-python-1699cca793c6a8ebc00942557b6764fff6739044.zip |
part-find-requirements: wip
Diffstat (limited to 'src/ee/tools/templates')
-rw-r--r-- | src/ee/tools/templates/build.ninja.j2 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2 index 0706b11..6ff4e0a 100644 --- a/src/ee/tools/templates/build.ninja.j2 +++ b/src/ee/tools/templates/build.ninja.j2 @@ -32,7 +32,7 @@ rule part-apply-function rule part-find-requirements description = part-find-requirements - command = $ee part-find-requirements --in $in --out $out + command = $ee part-find-requirements --in $in --out $out $report rule part-validate-parts command = $ee part-validate-parts --in $in --out $out @@ -88,7 +88,9 @@ build ee/sch.xml: part-apply-function ee/kicad-sch.xml build $report_dir/part-validate-parts.rst: part-validate-parts ee/sch.xml {%- set reports=reports+["$report_dir/part-validate-parts.rst"] %} -build ee/requirements.xml: part-find-requirements ee/sch.xml +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 %} @@ -97,7 +99,7 @@ build ee/{{ s }}/pn-part-search-list.xml: pn-part-search-list ee/sch.xml supplier = {{ s }} build ee/{{ s }}/downloaded.xml | ee/{{ s }}/downloaded.rst: {{ s }}-search-parts ee/{{ s }}/pn-part-search-list.xml -{%- set reports=reports+["ee/" + s + "/downloaded.rst"] %} +{%- set reports=reports+["$report_dir/" + s + "/downloaded.rst"] %} build ee/{{ s }}/parts.xml: part-apply-function ee/{{ s }}/downloaded.xml execution = {{ s }} |