aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools/templates
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-04-01 20:32:07 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-04-01 20:32:07 +0200
commitc92d818f6986d5013b16a63c2c1aeaa511222479 (patch)
tree0e2e4664efc8bd703e0f638462d0332a04d019d2 /src/ee/tools/templates
parent73c63d8c307bdbeb534c24fb51d4093c2fcbb86d (diff)
downloadee-python-c92d818f6986d5013b16a63c2c1aeaa511222479.tar.gz
ee-python-c92d818f6986d5013b16a63c2c1aeaa511222479.tar.bz2
ee-python-c92d818f6986d5013b16a63c2c1aeaa511222479.tar.xz
ee-python-c92d818f6986d5013b16a63c2c1aeaa511222479.zip
demo: Updating.
Diffstat (limited to 'src/ee/tools/templates')
-rw-r--r--src/ee/tools/templates/build.ninja.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2
index 6efe20b..2a56bdc 100644
--- a/src/ee/tools/templates/build.ninja.j2
+++ b/src/ee/tools/templates/build.ninja.j2
@@ -82,7 +82,7 @@ build {{ out }}: import-parts-yaml {{ f }}
build ee/order.xml | $report_dir/order.rst: create-order ee/sch.xml {%- for p in part_dbs %} {{ p }}.xml{% endfor %}
schematic = ee/sch.xml
part_dbs ={%- for p in part_dbs %} {{ p }}.xml{% endfor %}
-{%- if project.cfg["create-order"]["strategy"] %}
+{%- if project.cfg["create-order"] and project.cfg["create-order"]["strategy"] %}
strategy = --strategy {{ project.cfg["create-order"]["strategy"] }}
{%- endif %}
@@ -92,7 +92,7 @@ rule seeed-download-opl
description = seeed-download-opl $opl
command = $ee seeed-download-opl --out $out --opl $opl
-{% if project.cfg.has_section("seeed-opl") -%}
+{%- if project.cfg.has_section("seeed-opl") -%}
{% set opls=project.cfg["seeed-opl"]["opls"].split(",") -%}
build seeed-download-opls: phony{%- for opl in opls %} ee/seeed/opl/{{ opl.strip() }}.xml{% endfor %}
{%- for opl in opls %}
@@ -101,4 +101,4 @@ build seeed-download-opls: phony{%- for opl in opls %} ee/seeed/opl/{{ opl.strip
build ee/seeed/opl/{{ opl }}.xml: seeed-download-opl
opl = {{ opl }}
{% endfor -%}
-{% endif -%}
+{% endif %}