beremiz

1e8900fc8ddb
Parents 24416137cda7
Children 953ceea2573e
fix build problem when make command have trailing whitespace(s)

whitespaces at the end are replaced with "", that causes make problem
--- a/targets/toolchain_makefile.py Mon Jun 26 19:42:42 2017 +0300
+++ b/targets/toolchain_makefile.py Tue Jun 27 13:30:48 2017 +0300
@@ -110,7 +110,7 @@
}
# clean sequence of multiple whitespaces
- cmd = re.sub(r"[ ]+", " ", target.getCommand())
+ cmd = re.sub(r"[ ]+", " ", target.getCommand().strip())
command = [ token % beremizcommand for token in cmd.split(' ')]