From a0cce48282f8914cdf40406e059e3c256c7edc32 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 8 Mar 2019 15:41:23 -0600 Subject: [PATCH] Modify uvision templates to conditionally enable post build --- tools/export/uvision/uvision.tmpl | 6 +++--- tools/export/uvision/uvision_debug.tmpl | 11 ++++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/tools/export/uvision/uvision.tmpl b/tools/export/uvision/uvision.tmpl index 767ace3489..c2261a6495 100644 --- a/tools/export/uvision/uvision.tmpl +++ b/tools/export/uvision/uvision.tmpl @@ -82,9 +82,9 @@ 0 - 0 + {{postbuild_step_active}} 0 - + {{postbuild_step if postbuild_step_active else ''}} 0 0 @@ -182,7 +182,7 @@ 1 BIN\UL2CM3.DLL - + {{'./flash_init.ini' if postbuild_step_active else ''}} diff --git a/tools/export/uvision/uvision_debug.tmpl b/tools/export/uvision/uvision_debug.tmpl index 60bd1e6f8e..c5d7f43467 100644 --- a/tools/export/uvision/uvision_debug.tmpl +++ b/tools/export/uvision/uvision_debug.tmpl @@ -6,11 +6,20 @@ 0x4 ARM-ADS + {% if postbuild_step_active %} + + 1 + + {% endif %} 0 1 11 {{device.debug_interface.bin_loc}} + {% if postbuild_step_active %} + ./debug_init.ini + 0 + {% endif %} @@ -21,4 +30,4 @@ - \ No newline at end of file +