File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 326
326
{% endfor %}
327
327
</option >
328
328
<option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.libs.{{u.id}}" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.libs" valueType =" libs" >
329
- {% for lib in opts['ld']['user_libraries '] %}
329
+ {% for lib in opts['ld']['system_libraries '] %}
330
330
<listOptionValue builtIn =" false" value =" {{lib}}" />
331
331
{% endfor %}
332
- {% for lib in opts['ld']['system_libraries '] %}
332
+ {% for lib in opts['ld']['user_libraries '] %}
333
333
<listOptionValue builtIn =" false" value =" {{lib}}" />
334
334
{% endfor %}
335
335
</option >
336
336
<option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs.{{u.id}}" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs" valueType =" userObjs" >
337
337
{% for path in opts['ld']['object_files'] %}
338
338
<listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
339
339
{% endfor %}
340
+ {% for path in opts['ld']['user_library_files'] %}
341
+ <listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
342
+ {% endfor %}
340
343
</option >
341
344
{% if opts['ld']['gcsections'] %}
342
345
<option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections.{{u.id}}" name =" Remove unused sections (-Xlinker --gc-sections)" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections" value =" true" valueType =" boolean" />
Original file line number Diff line number Diff line change 326
326
{% endfor %}
327
327
</option >
328
328
<option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.libs.{{u.id}}" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.libs" valueType =" libs" >
329
- {% for lib in opts['ld']['user_libraries '] %}
329
+ {% for lib in opts['ld']['system_libraries '] %}
330
330
<listOptionValue builtIn =" false" value =" {{lib}}" />
331
331
{% endfor %}
332
- {% for lib in opts['ld']['system_libraries '] %}
332
+ {% for lib in opts['ld']['user_libraries '] %}
333
333
<listOptionValue builtIn =" false" value =" {{lib}}" />
334
334
{% endfor %}
335
335
</option >
336
336
<option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs.{{u.id}}" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs" valueType =" userObjs" >
337
337
{% for path in opts['ld']['object_files'] %}
338
338
<listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
339
339
{% endfor %}
340
+ {% for path in opts['ld']['user_library_files'] %}
341
+ <listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
342
+ {% endfor %}
340
343
</option >
341
344
{% if opts['ld']['gcsections'] %}
342
345
<option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections.{{u.id}}" name =" Remove unused sections (-Xlinker --gc-sections)" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections" value =" true" valueType =" boolean" />
Original file line number Diff line number Diff line change @@ -90,7 +90,9 @@ def create_jinja_ctx(self):
90
90
# TODO: use some logger to display additional info if verbose
91
91
92
92
libraries = []
93
+ library_files = []
93
94
for lib in self .libraries :
95
+ library_files .append (self .filter_dot (lib ))
94
96
l , _ = splitext (basename (lib ))
95
97
libraries .append (l [3 :])
96
98
@@ -178,6 +180,7 @@ def create_jinja_ctx(self):
178
180
179
181
opts ['ld' ]['object_files' ] = objects
180
182
opts ['ld' ]['user_libraries' ] = libraries
183
+ opts ['ld' ]['user_library_files' ] = library_files
181
184
opts ['ld' ]['system_libraries' ] = self .system_libraries
182
185
opts ['ld' ]['script' ] = join (id .capitalize (),
183
186
"linker-script-%s.ld" % id )
You can’t perform that action at this time.
0 commit comments