From 10ef3d610e8cf0fe0bff462d7f654e89060ce916 Mon Sep 17 00:00:00 2001 From: Stephen Paulger Date: Thu, 7 Nov 2013 17:33:50 +0000 Subject: [PATCH] Add LPC812 exporter for DS5 --- workspace_tools/export/README.md | 2 +- workspace_tools/export/ds5_5.py | 7 +- .../export/ds5_5_lpc812.cproject.tmpl | 103 ++++++++++++++++ .../export/ds5_5_lpc812.launch.tmpl | 111 ++++++++++++++++++ .../export/ds5_5_lpc812.project.tmpl | 83 +++++++++++++ 5 files changed, 303 insertions(+), 3 deletions(-) create mode 100644 workspace_tools/export/ds5_5_lpc812.cproject.tmpl create mode 100644 workspace_tools/export/ds5_5_lpc812.launch.tmpl create mode 100644 workspace_tools/export/ds5_5_lpc812.project.tmpl diff --git a/workspace_tools/export/README.md b/workspace_tools/export/README.md index 822e2482ea..70fa7cf3e5 100644 --- a/workspace_tools/export/README.md +++ b/workspace_tools/export/README.md @@ -32,7 +32,7 @@ Exporter Toolchain/Platform Support NXP LPC812 - + ✓ diff --git a/workspace_tools/export/ds5_5.py b/workspace_tools/export/ds5_5.py index 2be63ab02d..e5a11a3682 100644 --- a/workspace_tools/export/ds5_5.py +++ b/workspace_tools/export/ds5_5.py @@ -20,13 +20,16 @@ from os.path import basename class DS5_5(Exporter): NAME = 'DS5' - TOOLCHAIN = 'ARM' - TARGETS = ['LPC1768', 'LPC11U24'] + TARGETS = ['LPC1768', 'LPC11U24', 'LPC812'] FILE_TYPES = { 'c_sources':'1', 'cpp_sources':'8', 's_sources':'2' } + USING_MICROLIB = ['LPC812'] + + def get_toolchain(self): + return 'uARM' if (self.target in self.USING_MICROLIB) else 'ARM' def generate(self): source_files = [] diff --git a/workspace_tools/export/ds5_5_lpc812.cproject.tmpl b/workspace_tools/export/ds5_5_lpc812.cproject.tmpl new file mode 100644 index 0000000000..96f0dc958e --- /dev/null +++ b/workspace_tools/export/ds5_5_lpc812.cproject.tmpl @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/workspace_tools/export/ds5_5_lpc812.launch.tmpl b/workspace_tools/export/ds5_5_lpc812.launch.tmpl new file mode 100644 index 0000000000..57ab0bac89 --- /dev/null +++ b/workspace_tools/export/ds5_5_lpc812.launch.tmpl @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/workspace_tools/export/ds5_5_lpc812.project.tmpl b/workspace_tools/export/ds5_5_lpc812.project.tmpl new file mode 100644 index 0000000000..2e9c358ff9 --- /dev/null +++ b/workspace_tools/export/ds5_5_lpc812.project.tmpl @@ -0,0 +1,83 @@ + + + {{name}}_ds5_lpc812 + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.buildLocation + ${workspace_loc:/ds5_lpc812/Build} + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + true + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + +