Updated exporters to a merge-friendly format

pull/213/head^2
Mihail Stoyanov 2014-03-18 10:52:34 +00:00
parent 298f5cabd3
commit 01432a058b
7 changed files with 83 additions and 11 deletions

View File

@ -20,9 +20,16 @@ from os.path import splitext, basename
class CodeRed(Exporter):
NAME = 'CodeRed'
TARGETS = ['LPC1768', 'LPC4088','LPC1114','LPC11U35_401','LPC11U35_501']
TOOLCHAIN = 'GCC_CR'
TARGETS = [
'LPC1768',
'LPC4088',
'LPC1114',
'LPC11U35_401',
'LPC11U35_501',
]
def generate(self):
libraries = []
for lib in self.resources.libraries:

View File

@ -20,8 +20,12 @@ from os.path import splitext, basename
class CodeSourcery(Exporter):
NAME = 'CodeSourcery'
TARGETS = ['LPC1768']
TOOLCHAIN = 'GCC_CS'
TARGETS = [
'LPC1768',
]
DOT_IN_RELATIVE_PATH = True
def generate(self):

View File

@ -20,14 +20,19 @@ from os.path import splitext, basename
class CoIDE(Exporter):
NAME = 'CoIDE'
TOOLCHAIN = 'GCC_ARM'
TARGETS = [
'KL25Z',
'KL05Z',
]
# seems like CoIDE currently supports only one type
FILE_TYPES = {
'c_sources':'1',
'cpp_sources':'1',
's_sources':'1'
}
TARGETS = ['KL25Z','KL05Z']
TOOLCHAIN = 'GCC_ARM'
def generate(self):
self.resources.win_to_unix()

View File

@ -20,13 +20,22 @@ from os.path import basename
class DS5_5(Exporter):
NAME = 'DS5'
TARGETS = ['LPC1768', 'LPC11U24', 'LPC812']
TARGETS = [
'LPC1768',
'LPC11U24',
'LPC812',
]
USING_MICROLIB = [
'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'

View File

@ -21,7 +21,20 @@ from os.path import splitext, basename
class GccArm(Exporter):
NAME = 'GccArm'
TOOLCHAIN = 'GCC_ARM'
TARGETS = ['LPC1768','KL05Z','KL25Z','KL46Z','K20D5M','LPC4088','LPC11U24','LPC1114','LPC11U35_401','LPC11U35_501']
TARGETS = [
'LPC1768',
'KL05Z',
'KL25Z',
'KL46Z',
'K20D5M',
'LPC4088',
'LPC11U24',
'LPC1114',
'LPC11U35_401',
'LPC11U35_501',
]
DOT_IN_RELATIVE_PATH = True
def generate(self):

View File

@ -19,9 +19,12 @@ from exporters import Exporter
class IAREmbeddedWorkbench(Exporter):
NAME = 'IAR'
TARGETS = ['LPC1768']
TOOLCHAIN = 'IAR'
TARGETS = [
'LPC1768',
]
def generate(self):
ctx = {
'name': self.program_name,

View File

@ -21,9 +21,40 @@ from os.path import basename
class Uvision4(Exporter):
NAME = 'uVision4'
TARGETS = ['LPC1768', 'LPC11U24', 'KL05Z', 'KL25Z', 'KL46Z', 'K20D5M', 'LPC1347', 'LPC1114', 'LPC11C24', 'LPC4088', 'LPC812', 'NUCLEO_F103RB', 'NUCLEO_L152RE', 'NUCLEO_F030R8', 'NUCLEO_F401RE', 'UBLOX_C027', 'LPC1549', 'LPC11U35_501']
USING_MICROLIB = ['LPC11U24', 'LPC1114', 'LPC11C24', 'LPC812', 'NUCLEO_F103RB', 'NUCLEO_L152RE', 'NUCLEO_F030R8', 'NUCLEO_F401RE', 'LPC1549', 'LPC11U35_501']
TARGETS = [
'LPC1768',
'LPC11U24',
'KL05Z',
'KL25Z',
'KL46Z',
'K64F',
'K20D5M',
'LPC1347',
'LPC1114',
'LPC11C24',
'LPC4088',
'LPC812',
'NUCLEO_F103RB',
'NUCLEO_L152RE',
'NUCLEO_F030R8',
'NUCLEO_F401RE',
'UBLOX_C027',
'LPC1549',
'LPC11U35_501',
]
USING_MICROLIB = [
'LPC11U24',
'LPC1114',
'LPC11C24',
'LPC812',
'NUCLEO_F103RB',
'NUCLEO_L152RE',
'NUCLEO_F030R8',
'NUCLEO_F401RE',
'LPC1549',
'LPC11U35_501',
]
FILE_TYPES = {
'c_sources':'1',