mirror of https://github.com/ARMmbed/mbed-os.git
Add imports for build
parent
32c56b2743
commit
9d51b1afa8
|
@ -24,7 +24,11 @@ modified for MCUXpresso by Johannes Stratmann <jojos62@online.de>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
|
import tempfile
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
from subprocess import Popen, PIPE
|
||||||
|
from os import getcwd, remove
|
||||||
from os.path import splitext, basename, exists
|
from os.path import splitext, basename, exists
|
||||||
from random import randint
|
from random import randint
|
||||||
|
|
||||||
|
@ -258,12 +262,12 @@ class MCUXpresso(GNUARMEclipse):
|
||||||
tmp_folder = tempfile.mkdtemp()
|
tmp_folder = tempfile.mkdtemp()
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
'mcuxpressoidec',
|
'mcuxpressoide',
|
||||||
'--launcher.suppressErrors',
|
'--launcher.suppressErrors',
|
||||||
'-nosplash',
|
'-nosplash',
|
||||||
'-application org.eclipse.cdt.managedbuilder.core.headlessbuild',
|
'-application org.eclipse.cdt.managedbuilder.core.headlessbuild',
|
||||||
'-data', tmp_folder,
|
'-data', tmp_folder,
|
||||||
'-import', os.getcwd(),
|
'-import', getcwd(),
|
||||||
'-cleanBuild', project_name
|
'-cleanBuild', project_name
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -291,15 +295,15 @@ class MCUXpresso(GNUARMEclipse):
|
||||||
# Cleanup the exported and built files
|
# Cleanup the exported and built files
|
||||||
if cleanup:
|
if cleanup:
|
||||||
if exists(log_name):
|
if exists(log_name):
|
||||||
os.remove(log_name)
|
remove(log_name)
|
||||||
os.remove('.project')
|
remove('.project')
|
||||||
os.remove('.cproject')
|
remove('.cproject')
|
||||||
if exists('Debug'):
|
if exists('Debug'):
|
||||||
shutil.rmtree('Debug')
|
shutil.rmtree('Debug')
|
||||||
if exists('Release'):
|
if exists('Release'):
|
||||||
shutil.rmtree('Release')
|
shutil.rmtree('Release')
|
||||||
if exists('makefile.targets'):
|
if exists('makefile.targets'):
|
||||||
os.remove('makefile.targets')
|
remove('makefile.targets')
|
||||||
|
|
||||||
# Always remove the temporary folder.
|
# Always remove the temporary folder.
|
||||||
if exists(tmp_folder):
|
if exists(tmp_folder):
|
||||||
|
|
Loading…
Reference in New Issue