@@ -130,9 +130,9 @@ def zip_export(file_name, prefix, resources, project_files):
130
130
131
131
def export_project (src_paths , export_path , target , ide ,
132
132
libraries_paths = None , options = None , linker_script = None ,
133
- clean = False , notify = None , verbose = False , name = None ,
134
- inc_dirs = None , jobs = 1 , silent = False , extra_verbose = False ,
135
- config = None , macros = None , zip_proj = None ):
133
+ notify = None , verbose = False , name = None , inc_dirs = None ,
134
+ jobs = 1 , silent = False , extra_verbose = False , config = None ,
135
+ macros = None , zip_proj = None ):
136
136
"""Generates a project file and creates a zip archive if specified
137
137
138
138
Positional Arguments:
@@ -145,7 +145,6 @@ def export_project(src_paths, export_path, target, ide,
145
145
libraries_paths - paths to additional libraries
146
146
options - build options passed by -o flag
147
147
linker_script - path to the linker script for the specified target
148
- clean - removes the export_path if it exists
149
148
notify - function is passed all events, and expected to handle notification
150
149
of the user, emit the events to a log, etc.
151
150
verbose - assigns the notify function to toolchains print_notify_verbose
@@ -177,19 +176,16 @@ def export_project(src_paths, export_path, target, ide,
177
176
src_paths = {"" : paths }
178
177
179
178
# Export Directory
180
- if exists (export_path ) and clean :
181
- rmtree (export_path )
182
179
if not exists (export_path ):
183
180
makedirs (export_path )
184
181
185
182
_ , toolchain_name = get_exporter_toolchain (ide )
186
183
187
184
# Pass all params to the unified prepare_resources()
188
185
toolchain = prepare_toolchain (paths , target , toolchain_name ,
189
- macros = macros , options = options , clean = clean ,
190
- jobs = jobs , notify = notify , silent = silent ,
191
- verbose = verbose , extra_verbose = extra_verbose ,
192
- config = config )
186
+ macros = macros , options = options , jobs = jobs ,
187
+ notify = notify , silent = silent , verbose = verbose ,
188
+ extra_verbose = extra_verbose , config = config )
193
189
# The first path will give the name to the library
194
190
if name is None :
195
191
name = basename (normpath (abspath (src_paths [0 ])))
0 commit comments