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 326326 {% endfor %}
327327 </option >
328328 <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 '] %}
330330 <listOptionValue builtIn =" false" value =" {{lib}}" />
331331 {% endfor %}
332- {% for lib in opts['ld']['system_libraries '] %}
332+ {% for lib in opts['ld']['user_libraries '] %}
333333 <listOptionValue builtIn =" false" value =" {{lib}}" />
334334 {% endfor %}
335335 </option >
336336 <option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs.{{u.id}}" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs" valueType =" userObjs" >
337337 {% for path in opts['ld']['object_files'] %}
338338 <listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
339339 {% endfor %}
340+ {% for path in opts['ld']['user_library_files'] %}
341+ <listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
342+ {% endfor %}
340343 </option >
341344 {% if opts['ld']['gcsections'] %}
342345 <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 326326 {% endfor %}
327327 </option >
328328 <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 '] %}
330330 <listOptionValue builtIn =" false" value =" {{lib}}" />
331331 {% endfor %}
332- {% for lib in opts['ld']['system_libraries '] %}
332+ {% for lib in opts['ld']['user_libraries '] %}
333333 <listOptionValue builtIn =" false" value =" {{lib}}" />
334334 {% endfor %}
335335 </option >
336336 <option id =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs.{{u.id}}" superClass =" ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.otherobjs" valueType =" userObjs" >
337337 {% for path in opts['ld']['object_files'] %}
338338 <listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
339339 {% endfor %}
340+ {% for path in opts['ld']['user_library_files'] %}
341+ <listOptionValue builtIn =" false" value =" " ${ProjDirPath}/{{path}}" " />
342+ {% endfor %}
340343 </option >
341344 {% if opts['ld']['gcsections'] %}
342345 <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):
9090 # TODO: use some logger to display additional info if verbose
9191
9292 libraries = []
93+ library_files = []
9394 for lib in self .libraries :
95+ library_files .append (self .filter_dot (lib ))
9496 l , _ = splitext (basename (lib ))
9597 libraries .append (l [3 :])
9698
@@ -178,6 +180,7 @@ def create_jinja_ctx(self):
178180
179181 opts ['ld' ]['object_files' ] = objects
180182 opts ['ld' ]['user_libraries' ] = libraries
183+ opts ['ld' ]['user_library_files' ] = library_files
181184 opts ['ld' ]['system_libraries' ] = self .system_libraries
182185 opts ['ld' ]['script' ] = join (id .capitalize (),
183186 "linker-script-%s.ld" % id )
You can’t perform that action at this time.
0 commit comments