export: Fix invalid config header path in Sw4STM32

Removed tmp-path from config header path, when project is exported
in online compiler. Parallel build is enabled by default.
pull/6838/head
Jaakko Heikkilä 2018-05-07 12:53:12 +03:00
parent 6361e92d62
commit 03b16fc1c3
2 changed files with 6 additions and 4 deletions

View File

@ -17,7 +17,7 @@ limitations under the License.
from __future__ import print_function, absolute_import
from builtins import str
from os.path import splitext, basename, join
from os.path import splitext, basename, relpath, join
import shutil
from tools.utils import mkdir
from tools.export.gnuarmeclipse import GNUARMEclipse
@ -290,7 +290,6 @@ class Sw4STM32(GNUARMEclipse):
},
}
@classmethod
def is_target_supported(cls, target_name):
target = TARGET_MAP[target_name]
@ -434,7 +433,10 @@ class Sw4STM32(GNUARMEclipse):
self.resources.win_to_unix()
config_header = self.filter_dot(self.toolchain.get_config_header())
config_header = self.toolchain.get_config_header()
if config_header:
config_header = relpath(config_header, self.resources.file_basepath[config_header])
print('Config header: ' + config_header)
libraries = []
for lib in self.resources.libraries:

View File

@ -28,7 +28,7 @@
<option id="fr.ac6.managedbuild.option.gnu.cross.floatabi.{{u.id}}" name="Floating-point ABI" superClass="fr.ac6.managedbuild.option.gnu.cross.floatabi" value="fr.ac6.managedbuild.option.gnu.cross.floatabi.{{opts['common']['arm.target.fpu.abi']}}" valueType="enumerated"/>
{% endif %}
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="fr.ac6.managedbuild.targetPlatform.gnu.cross.{{u.id}}" isAbstract="false" osList="all" superClass="fr.ac6.managedbuild.targetPlatform.gnu.cross"/>
<builder buildPath="${workspace_loc:/{{name}}}/{{opts['name']}}" id="fr.ac6.managedbuild.builder.gnu.cross.{{u.id}}" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="fr.ac6.managedbuild.builder.gnu.cross"/>
<builder buildPath="${workspace_loc:/{{name}}}/{{opts['name']}}" id="fr.ac6.managedbuild.builder.gnu.cross.{{u.id}}" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="fr.ac6.managedbuild.builder.gnu.cross"/>
<tool id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.{{opts['uid']['tool_c_compiler']}}" name="MCU GCC Compiler" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler">
{% if cfg_id == 'debug' %}
<option id="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level.{{u.id}}" name="Optimization Level" superClass="fr.ac6.managedbuild.gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" value="fr.ac6.managedbuild.gnu.c.optimization.level.more" valueType="enumerated"/>