mirror of https://github.com/ARMmbed/mbed-os.git
Modify uvision templates to conditionally enable post build
parent
d004828589
commit
a0cce48282
|
|
@ -82,9 +82,9 @@
|
|||
<nStopB2X>0</nStopB2X>
|
||||
</BeforeMake>
|
||||
<AfterMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg1>{{postbuild_step_active}}</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg1Name>{{postbuild_step if postbuild_step_active else ''}}</UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
|
|
@ -182,7 +182,7 @@
|
|||
<bUseTDR>1</bUseTDR>
|
||||
<Flash2>BIN\UL2CM3.DLL</Flash2>
|
||||
<Flash3></Flash3>
|
||||
<Flash4></Flash4>
|
||||
<Flash4>{{'./flash_init.ini' if postbuild_step_active else ''}}</Flash4>
|
||||
<pFcarmOut></pFcarmOut>
|
||||
<pFcarmGrp></pFcarmGrp>
|
||||
<pFcArmRoot></pFcArmRoot>
|
||||
|
|
|
|||
|
|
@ -6,11 +6,20 @@
|
|||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
{% if postbuild_step_active %}
|
||||
<OPTTT>
|
||||
<RunAbUc>1</RunAbUc>
|
||||
</OPTTT>
|
||||
{% endif %}
|
||||
<DebugOpt>
|
||||
<uSim>0</uSim>
|
||||
<uTrg>1</uTrg>
|
||||
<nTsel>11</nTsel>
|
||||
<pMon>{{device.debug_interface.bin_loc}}</pMon>
|
||||
{% if postbuild_step_active %}
|
||||
<tIfile>./debug_init.ini</tIfile>
|
||||
<tLdApp>0</tLdApp>
|
||||
{% endif %}
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
|
|
@ -21,4 +30,4 @@
|
|||
</TargetDriverDllRegistry>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
</ProjectOpt>
|
||||
</ProjectOpt>
|
||||
|
|
|
|||
Loading…
Reference in New Issue