|
2 | 2 | <project xmlns:model="http://www.silabs.com/sls/IDE.ecore" name="{{ name }}" kitCompatibility="{{ kit }}"
|
3 | 3 | partCompatibility="{{ part }}"
|
4 | 4 | toolchainCompatibility="com.silabs.ide.si32.gcc:4.8.3.20131129"
|
5 |
| - sdkCompatibility="com.silabs.sdk.si32.efm32.sls:2.0.5" |
| 5 | + sdkCompatibility="com.silabs.sdk.si32.efm32" |
6 | 6 | propertyScope="project"
|
7 | 7 | contentRoot=".">
|
8 | 8 | {# Hierarchically include all folders into the project #}
|
|
55 | 55 | ${workspace_loc:/${ProjName}/{{ file }}}{% if not loop.last %} {% endif %}
|
56 | 56 | {%- endfor -%}"/>
|
57 | 57 | {%- endif %}
|
| 58 | +{# Manually override linker ordering #} |
| 59 | + {%- if libraries %} |
| 60 | + <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.category.ordering.selection" value=" |
| 61 | + {%- if object_files -%} |
| 62 | + {%- for file in object_files -%} |
| 63 | + ${workspace_loc:/${ProjName}/{{ file }}}; |
| 64 | + {%- endfor -%} |
| 65 | + {%- endif -%} |
| 66 | + {%- for library in libraries -%} |
| 67 | + ${-l{{ library }}}{% if not loop.last %};{% endif %} |
| 68 | + {%- endfor -%}"/> |
| 69 | + {%- endif %} |
58 | 70 | {# Define mbed-specific linker file #}
|
59 | 71 | <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.usescript" value="true"/>
|
60 | 72 | <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.script" value="${workspace_loc:/${ProjName}/{{ linker_script }}}"/>
|
|
100 | 112 | ${workspace_loc:/${ProjName}/{{ file }}}{% if not loop.last %} {% endif %}
|
101 | 113 | {%- endfor -%}"/>
|
102 | 114 | {%- endif %}
|
| 115 | +{# Manually override linker ordering #} |
| 116 | + {%- if libraries %} |
| 117 | + <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.category.ordering.selection" value=" |
| 118 | + {%- if object_files -%} |
| 119 | + {%- for file in object_files -%} |
| 120 | + ${workspace_loc:/${ProjName}/{{ file }}}; |
| 121 | + {%- endfor -%} |
| 122 | + {%- endif -%} |
| 123 | + {%- for library in libraries -%}{% if not loop.last %};{% endif %} |
| 124 | + ${-l{{ library }}} |
| 125 | + {%- endfor -%}"/> |
| 126 | + {%- endif %} |
103 | 127 | {# Define mbed-specific linker file #}
|
104 | 128 | <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.usescript" value="true"/>
|
105 | 129 | <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.script" value="${workspace_loc:/${ProjName}/{{ linker_script }}}"/>
|
|
0 commit comments