|
4 | 4 | <Device manufacturerId="4" manufacturerName="Freescale" chipId="86" chipName="MKL25Z128VLK4" boardId="" boardName=""/>
|
5 | 5 | <BuildOption>
|
6 | 6 | <Compile>
|
7 |
| - <Option name="OptimizationLevel" value="0"/> |
| 7 | + <Option name="OptimizationLevel" value="4"/> |
8 | 8 | <Option name="UseFPU" value="0"/>
|
9 |
| - <Option name="UserEditCompiler" value="-Wl, --specs=nano.specs -fno-common; -fmessage-length=0; -Wall; -fno-exceptions; -ffunction-sections; -fdata-sections; {% for s in symbols %}-D{{s}}; {% endfor %} -std=gnu++98"/> |
| 9 | + <Option name="UserEditCompiler" value="-fno-common; -fmessage-length=0; -Wall; -fno-strict-aliasing; -fno-rtti; -fno-exceptions; -ffunction-sections; -fdata-sections; -std=gnu++98"/> |
10 | 10 | <Includepaths>
|
11 |
| - <Includepath path="."/> |
12 |
| - <Includepath path="mbed"/> |
13 |
| - <Includepath path="mbed/target_kl25z"/> |
14 |
| - <Includepath path="mbed/target_kl25z/toolchain_gcc_arm"/> |
| 11 | + {% for path in include_paths %} <Includepath path="{{path}}"/> {% endfor %} |
15 | 12 | </Includepaths>
|
16 | 13 | <DefinedSymbols>
|
17 |
| - <Define name="MKL25Z128VLK4"/> |
| 14 | + {% for s in symbols %} <Define name="{{s}}"/> {% endfor %} |
18 | 15 | </DefinedSymbols>
|
19 | 16 | </Compile>
|
20 | 17 | <Link useDefault="0">
|
|
25 | 22 | <Option name="IsNewStartupCode" value="1"/>
|
26 | 23 | <Option name="Library" value="Not use C Library"/>
|
27 | 24 | <Option name="nostartfiles" value="0"/>
|
28 |
| - <Option name="UserEditLinker" value="C:/CooCox/CoIDE/workspace/{{name}}/mbed/target_kl25z/toolchain_gcc_arm/cmsis_nvic.o; C:/CooCox/CoIDE/workspace/{{name}}/mbed/target_kl25z/toolchain_gcc_arm/retarget.o; C:/CooCox/CoIDE/workspace/{{name}}/mbed/target_kl25z/toolchain_gcc_arm/startup_MKL25Z4.o; C:/CooCox/CoIDE/workspace/{{name}}/mbed/target_kl25z/toolchain_gcc_arm/system_MKL25Z4.o; -lmbed; -lstdc++; -lsupc++; -lm; -lc; -lgcc; -lnosys; -lmbed; -lstdc++; -lsupc++; -lm; -lc; -lgcc; -lnosys; "/> |
| 25 | + <Option name="UserEditLinker" value="--specs=nano.specs; -u _printf_float; -u _scanf_float; {% for file in object_files %} |
| 26 | + ${project.path}/{{file}}; {% endfor %} {% for lib in libraries %} -l{{lib}}; {% endfor %} -lstdc++; -lsupc++; -lm; -lc; -lgcc; -lnosys;"/> |
29 | 27 | <LinkedLibraries/>
|
30 | 28 | <MemoryAreas debugInFlashNotRAM="1">
|
31 | 29 | <Memory name="IROM1" type="ReadOnly" size="0x00020000" startValue="0x00000000"/>
|
32 | 30 | <Memory name="IRAM1" type="ReadWrite" size="0x00001000" startValue="0x1FFFF000"/>
|
33 | 31 | <Memory name="IROM2" type="ReadOnly" size="" startValue=""/>
|
34 | 32 | <Memory name="IRAM2" type="ReadWrite" size="" startValue=""/>
|
35 | 33 | </MemoryAreas>
|
36 |
| - <LocateLinkFile path="mbed/target_kl25z/toolchain_gcc_arm/mkl25z4.ld" type="0"/> |
| 34 | + <LocateLinkFile path="{{scatter_file}}" type="0"/> |
37 | 35 | </Link>
|
38 | 36 | <Output>
|
39 | 37 | <Option name="OutputFileType" value="0"/>
|
|
70 | 68 | </Target>
|
71 | 69 | <Components path="./"/>
|
72 | 70 | <Files>
|
73 |
| - <File name="main.cpp" path="main.cpp" type="1"/> |
| 71 | + {% for file in source_files %} |
| 72 | + <File name="{{file.name}}" path="{{file.path}}.{{file.type}}" type="1"/> |
| 73 | + {% endfor %} |
74 | 74 | </Files>
|
75 | 75 | </Project>
|
0 commit comments