diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-11-13 10:39:33 +0100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2015-11-13 20:48:07 +1100 |
commit | b2ce230eb85d23d017f3e86fa9223e781e803f22 (patch) | |
tree | 2f454f7f93d29dee8a99edf616ba7d4da3a71495 /rtems.py | |
parent | 7bcf72b72ec42f2feedac5f5cc5f2f57d50b5d2b (diff) |
Do RTEMS CPU options check early
Set mandatory C++ standard option in case SMP is enabled.
Close #2418.
Diffstat (limited to 'rtems.py')
-rw-r--r-- | rtems.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -191,11 +191,15 @@ def configure(conf, bsp_configure = None): # # Checks for various RTEMS features. # - conf.multicheck({ 'header_name': 'rtems.h'}, - { 'header_name': 'rtems/score/cpuopts.h'}, - msg = 'Checking for RTEMS headers', + conf.multicheck({ 'header_name': 'rtems/score/cpuopts.h'}, + msg = 'Checking for RTEMS CPU options header', mandatory = True) load_cpuopts(conf, ab, conf.options.rtems_path) + if conf.env['RTEMS_SMP'] == 'Yes': + conf.env.CXXFLAGS += ['-std=gnu++11'] + conf.multicheck({ 'header_name': 'rtems.h'}, + msg = 'Checking for RTEMS header', + mandatory = True) # # Add tweaks. |