lpcmanager

LPCArch : Name product "product" and architecture "arch". LPCBus : rename C code templates to make space for new target, added product/arch bus definitions in LPCBus.py
#!/usr/bin/env python
# XXX Where is MC8 ?
WX_GOT_modules = ['GOT', 'GOT_111', 'GOT_131']
SVG_GOT_modules = ['GOT6']
MC9_modules = ['MC9', 'MW1']
SOM28_modules = MC9_modules + WX_GOT_modules
SOM6_modules = SVG_GOT_modules
product = None
def SetLPCProduct(given):
global product
product = given
def GetLPCProduct():
return product
def GetLPCArch():
if product in SOM28_modules:
bus_template_name = "MC9"
elif product in SOM6_modules:
bus_template_name = "MC10"
elif product is "MC8" :
bus_template_name = "MC8"
else:
bus_template_name = None