canfestival/test_config/nodelist.cpj
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Apr 2016 18:56:51 +0300
changeset 1478 69fe0b81e951
parent 721 ecf4d203c4d4
permissions -rw-r--r--
make attribute CFLAGS and LDFLAGS optional and add default empty value

Actually CFLAGS and LDFLAGS are not required and can be empty.
Without default empty value if target platform in project settings was
set to "Linux" CFLAGS and LDFLAGS was initialized with NoneType.
The result was broken build and it wasn't to save/load project with
such settings.

Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/ProjectController.py", line 956, in _Build
if not builder.build() :
File "/home/developer/WorkData/PLC/beremiz/beremiz/targets/toolchain_gcc.py", line 96, in build
Builder_CFLAGS = ' '.join(self.getBuilderCFLAGS())
TypeError: sequence item 0: expected string, NoneType found
34
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     1
[TOPOLOGY]
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     2
NetName=None
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     3
Nodes=0x01
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     4
Node64Present=0x01
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     5
Node64Name=micromod
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     6
Node64DCFName=PEAK MicroMod.eds
2721e6910f5a config_utils.py rewritten
lbessard
parents:
diff changeset
     7
EDSBaseName=eds