Skip to content

Commit 2364744

Browse files
authored
Merge pull request #3601 from theotherjimmy/clean-export-dir
Clean export dir
2 parents bdcda38 + 4a08fd5 commit 2364744

File tree

110 files changed

+36
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+36
-30
lines changed

tools/export/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717

1818
from tools.export import codered, ds5_5, iar, makefile
19-
from tools.export import embitz, coide, kds, simplicityv3, atmelstudio
19+
from tools.export import embitz, coide, kds, simplicity, atmelstudio
2020
from tools.export import sw4stm32, e2studio, zip, cmsis, uvision, cdt
2121
from tools.targets import TARGET_NAMES
2222

@@ -33,7 +33,7 @@
3333
'embitz' : embitz.EmBitz,
3434
'coide' : coide.CoIDE,
3535
'kds' : kds.KDS,
36-
'simplicityv3' : simplicityv3.SimplicityV3,
36+
'simplicityv3' : simplicity.SimplicityV3,
3737
'atmelstudio' : atmelstudio.AtmelStudio,
3838
'sw4stm32' : sw4stm32.Sw4STM32,
3939
'e2studio' : e2studio.E2Studio,

tools/export/atmelstudio.py renamed to tools/export/atmelstudio/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
limitations under the License.
1616
"""
1717
import uuid
18-
from exporters import Exporter
1918
from os.path import splitext, basename, dirname
2019

20+
from tools.export.exporters import Exporter
21+
2122

2223
class AtmelStudio(Exporter):
2324
NAME = 'AtmelStudio'
@@ -75,5 +76,5 @@ def generate(self):
7576
}
7677
ctx.update(self.flags)
7778
target = self.target.lower()
78-
self.gen_file('atmelstudio6_2.atsln.tmpl', ctx, '%s.atsln' % self.project_name)
79-
self.gen_file('atmelstudio6_2.cppproj.tmpl', ctx, '%s.cppproj' % self.project_name)
79+
self.gen_file('atmelstudio/atsln.tmpl', ctx, '%s.atsln' % self.project_name)
80+
self.gen_file('atmelstudio/cppproj.tmpl', ctx, '%s.cppproj' % self.project_name)

tools/export/codered.py renamed to tools/export/codered/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import splitext, basename
1918

19+
from tools.export.exporters import Exporter
2020

2121
class CodeRed(Exporter):
2222
NAME = 'CodeRed'
@@ -56,5 +56,5 @@ def generate(self):
5656
'symbols': self.toolchain.get_symbols()
5757
}
5858
ctx.update(self.flags)
59-
self.gen_file('codered_%s_project.tmpl' % self.target.lower(), ctx, '.project')
60-
self.gen_file('codered_%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject')
59+
self.gen_file('codered/%s_project.tmpl' % self.target.lower(), ctx, '.project')
60+
self.gen_file('codered/%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject')

tools/export/coide.py renamed to tools/export/coide/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import splitext, basename
1918

19+
from tools.export.exporters import Exporter
20+
2021

2122
class CoIDE(Exporter):
2223
NAME = 'CoIDE'
@@ -112,4 +113,4 @@ def generate(self):
112113
target = self.target.lower()
113114

114115
# Project file
115-
self.gen_file('coide_%s.coproj.tmpl' % target, ctx, '%s.coproj' % self.project_name)
116+
self.gen_file('coide/%s.coproj.tmpl' % target, ctx, '%s.coproj' % self.project_name)

tools/export/ds5_5.py renamed to tools/export/ds5_5/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import basename
1918

19+
from tools.export.exporters import Exporter
20+
2021

2122
class DS5_5(Exporter):
2223
NAME = 'DS5'
@@ -64,6 +65,6 @@ def generate(self):
6465
target = self.target.lower()
6566

6667
# Project file
67-
self.gen_file('ds5_5_%s.project.tmpl' % target, ctx, '.project')
68-
self.gen_file('ds5_5_%s.cproject.tmpl' % target, ctx, '.cproject')
69-
self.gen_file('ds5_5_%s.launch.tmpl' % target, ctx, 'ds5_%s.launch' % target)
68+
self.gen_file('ds5_5/%s.project.tmpl' % target, ctx, '.project')
69+
self.gen_file('ds5_5/%s.cproject.tmpl' % target, ctx, '.cproject')
70+
self.gen_file('ds5_5/%s.launch.tmpl' % target, ctx, 'ds5_%s.launch' % target)

tools/export/e2studio.py renamed to tools/export/e2studio/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import splitext, basename
1918

19+
from tools.export.exporters import Exporter
2020

2121
class E2Studio(Exporter):
2222
NAME = 'e2 studio'
@@ -41,7 +41,7 @@ def generate(self):
4141
'libraries': libraries,
4242
'symbols': self.toolchain.get_symbols()
4343
}
44-
self.gen_file('e2studio_%s_project.tmpl' % self.target.lower(), ctx, '.project')
45-
self.gen_file('e2studio_%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject')
46-
self.gen_file('e2studio_%s_gdbinit.tmpl' % self.target.lower(), ctx, '.gdbinit')
47-
self.gen_file('e2studio_launch.tmpl', ctx, '%s OpenOCD.launch' % self.project_name)
44+
self.gen_file('e2studio/%s_project.tmpl' % self.target.lower(), ctx, '.project')
45+
self.gen_file('e2studio/%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject')
46+
self.gen_file('e2studio/%s_gdbinit.tmpl' % self.target.lower(), ctx, '.gdbinit')
47+
self.gen_file('e2studio/launch.tmpl', ctx, '%s OpenOCD.launch' % self.project_name)
File renamed without changes.

tools/export/kds.py renamed to tools/export/kds/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import splitext, basename
1918

19+
from tools.export.exporters import Exporter
20+
2021

2122
class KDS(Exporter):
2223
NAME = 'Kinetis Design Studio'
@@ -42,6 +43,6 @@ def generate(self):
4243
'libraries': libraries,
4344
'symbols': self.toolchain.get_symbols()
4445
}
45-
self.gen_file('kds_%s_project.tmpl' % self.target.lower(), ctx, '.project')
46-
self.gen_file('kds_%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject')
47-
self.gen_file('kds_launch.tmpl', ctx, '%s.launch' % self.project_name)
46+
self.gen_file('kds/%s_project.tmpl' % self.target.lower(), ctx, '.project')
47+
self.gen_file('kds/%s_cproject.tmpl' % self.target.lower(), ctx, '.cproject')
48+
self.gen_file('kds/launch.tmpl', ctx, '%s.launch' % self.project_name)
File renamed without changes.

tools/export/simplicityv3.py renamed to tools/export/simplicity/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import split,splitext, basename
1918

19+
from tools.export.exporters import Exporter
20+
2021
class Folder:
2122
def __init__(self, name):
2223
self.name = name
@@ -191,4 +192,4 @@ def generate(self):
191192
print("\t" + bpath.name + "\n")
192193
'''
193194

194-
self.gen_file('simplicityv3_slsproj.tmpl', ctx, '%s.slsproj' % self.project_name)
195+
self.gen_file('simplicity/slsproj.tmpl', ctx, '%s.slsproj' % self.project_name)

tools/export/sw4stm32.py renamed to tools/export/sw4stm32/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import splitext, basename, join
1918
from random import randint
2019
from tools.utils import mkdir
20+
from tools.export.exporters import Exporter
2121

2222

2323
class Sw4STM32(Exporter):
@@ -114,6 +114,6 @@ def generate(self):
114114
}
115115

116116
self.__gen_dir('.settings')
117-
self.gen_file('sw4stm32_language_settings_commom.tmpl', ctx, '.settings/language.settings.xml')
118-
self.gen_file('sw4stm32_project_common.tmpl', ctx, '.project')
119-
self.gen_file('sw4stm32_cproject_common.tmpl', ctx, '.cproject')
117+
self.gen_file('sw4stm32/language_settings_commom.tmpl', ctx, '.settings/language.settings.xml')
118+
self.gen_file('sw4stm32/project_common.tmpl', ctx, '.project')
119+
self.gen_file('sw4stm32/cproject_common.tmpl', ctx, '.cproject')

tools/export/zip.py renamed to tools/export/zip/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
from exporters import Exporter
1817
from os.path import basename
1918

19+
from tools.export.exporters import Exporter
20+
2021

2122
class ZIP(Exporter):
2223
NAME = 'ZIP'

0 commit comments

Comments
 (0)