File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ def format_src(self, srcs):
182
182
"""Make sources into the named tuple for use in the template"""
183
183
grouped = self .group_project_files (srcs )
184
184
for group , files in grouped .items ():
185
- grouped [group ] = self .uv_files (files )
185
+ grouped [group ] = sorted (list (self .uv_files (files )),
186
+ key = lambda (_ , __ , name ): name .lower ())
186
187
return grouped
187
188
188
189
def generate (self ):
@@ -198,7 +199,8 @@ def generate(self):
198
199
'name' : self .project_name ,
199
200
# project_files => dict of generators - file group to generator of
200
201
# UVFile tuples defined above
201
- 'project_files' : self .format_src (srcs ),
202
+ 'project_files' : sorted (list (self .format_src (srcs ).iteritems ()),
203
+ key = lambda (group , _ ): group .lower ()),
202
204
'linker_script' :self .resources .linker_script ,
203
205
'include_paths' : '; ' .join (self .resources .inc_dirs ).encode ('utf-8' ),
204
206
'device' : DeviceUvision (self .target ),
Original file line number Diff line number Diff line change 417
417
</TargetArmAds >
418
418
</TargetOption >
419
419
<Groups >
420
- {% for group, files in project_files.iteritems() %}
420
+ {% for group, files in project_files %}
421
421
<Group >
422
422
<GroupName >{{group}}</GroupName >
423
423
<Files >
You can’t perform that action at this time.
0 commit comments