Skip to content

Commit 55e6838

Browse files
committed
Merge pull request #32 from 0xc0170/fix_build_dir
Fix build dir for uvision and IAR
2 parents e3afc94 + 5b8e65b commit 55e6838

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tools/export/exporters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def progen_get_project_data(self):
6464
'includes': {
6565
'Include Files': self.resources.headers,
6666
},
67+
'build_dir':'.build',
6768
'target': [TARGET_MAP[self.target].progen['target']],
6869
'macros': self.get_symbols(),
6970
'export_dir': [self.inputDir],

tools/export/iar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def generate(self):
6767

6868
project_data['tool_specific'] = {}
6969
project_data['tool_specific'].update(tool_specific)
70+
project_data['common']['build_dir'] = os.path.join(project_data['common']['build_dir'], 'iar_arm')
7071
self.progen_gen_file('iar_arm', project_data)
7172

7273
# Currently not used, we should reuse folder_name to create virtual folders

tools/export/uvision4.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ def generate(self):
7373
project_data['common']['macros'].pop(i)
7474
i += 1
7575
project_data['common']['macros'].append('__ASSERT_MSG')
76+
project_data['common']['build_dir'] = join(project_data['common']['build_dir'], 'uvision4')
7677
self.progen_gen_file('uvision', project_data)
7778

0 commit comments

Comments
 (0)