lpcmanager

Parents 261abdd9d14f
Children 4a26b89c1446
Arch is no more optional argument, and fixed regression from before last commit
--- a/LPCManager.py Mon Jan 29 15:39:56 2018 +0100
+++ b/LPCManager.py Mon Jan 29 16:06:43 2018 +0100
@@ -30,12 +30,12 @@
# XXX Where is MC8 ?
PLC_GOT_module = ['GOT', 'GOT_111', 'GOT_131']
PLC_MC9_module = ['MC9']
-PLC_module = [PLC_MC9_module, PLC_GOT_module]
-arch = None
+PLC_module = PLC_MC9_module + PLC_GOT_module
+arch = None
def usage():
print "\nUsage of LPCManager.py :"
- print "\n %s Projectpath Buildpath port [arch]\n" % sys.argv[0]
+ print "\n %s Projectpath Buildpath port arch\n" % sys.argv[0]
# Command line arguments parsing
try:
@@ -51,8 +51,7 @@
usage()
sys.exit()
-# Arch is optional an defaults to MC9
-if len(args) < 3 or len(args) > 4:
+if len(args) != 4 :
usage()
sys.exit()
else:
@@ -63,10 +62,7 @@
except:
usage()
sys.exit()
- if len(args) > 3:
- arch = args[3]
- else:
- arch = "MC9"
+ arch = args[3]
# BEREMIZ_DEBUG file detection in beremiz isn't enough (module scope)
# here we set BMZ_DBG interpreter-wise, so that submodules can use it.