@@ -134,11 +134,10 @@ def zip_export(file_name, prefix, resources, project_files, inc_repos):
134
134
135
135
136
136
137
- def export_project (src_paths , export_path , target , ide ,
138
- libraries_paths = None , linker_script = None , clean = False ,
139
- notify = None , verbose = False , name = None , inc_dirs = None ,
140
- jobs = 1 , silent = False , extra_verbose = False , config = None ,
141
- macros = None , zip_proj = None , inc_repos = False ,
137
+ def export_project (src_paths , export_path , target , ide , libraries_paths = None ,
138
+ linker_script = None , notify = None , verbose = False , name = None ,
139
+ inc_dirs = None , jobs = 1 , silent = False , extra_verbose = False ,
140
+ config = None , macros = None , zip_proj = None , inc_repos = False ,
142
141
build_profile = None ):
143
142
"""Generates a project file and creates a zip archive if specified
144
143
@@ -151,7 +150,6 @@ def export_project(src_paths, export_path, target, ide,
151
150
Keyword Arguments:
152
151
libraries_paths - paths to additional libraries
153
152
linker_script - path to the linker script for the specified target
154
- clean - removes the export_path if it exists
155
153
notify - function is passed all events, and expected to handle notification
156
154
of the user, emit the events to a log, etc.
157
155
verbose - assigns the notify function to toolchains print_notify_verbose
@@ -183,19 +181,16 @@ def export_project(src_paths, export_path, target, ide,
183
181
src_paths = {"" : paths }
184
182
185
183
# Export Directory
186
- if exists (export_path ) and clean :
187
- rmtree (export_path )
188
184
if not exists (export_path ):
189
185
makedirs (export_path )
190
186
191
187
_ , toolchain_name = get_exporter_toolchain (ide )
192
188
193
189
# Pass all params to the unified prepare_resources()
194
- toolchain = prepare_toolchain (paths , target , toolchain_name ,
195
- macros = macros , clean = clean , jobs = jobs ,
196
- notify = notify , silent = silent , verbose = verbose ,
197
- extra_verbose = extra_verbose , config = config ,
198
- build_profile = build_profile )
190
+ toolchain = prepare_toolchain (paths , target , toolchain_name , macros = macros ,
191
+ jobs = jobs , notify = notify , silent = silent ,
192
+ verbose = verbose , extra_verbose = extra_verbose ,
193
+ config = config , build_profile = build_profile )
199
194
# The first path will give the name to the library
200
195
if name is None :
201
196
name = basename (normpath (abspath (src_paths [0 ])))
0 commit comments