waf: removed g++ command line differences between similar boards

don't put board name on g++ command line
This commit is contained in:
Andrew Tridgell 2022-02-21 13:53:24 +11:00
parent bcf3f22375
commit d07d5a7082
2 changed files with 1 additions and 2 deletions

View File

@ -827,7 +827,6 @@ class chibios(Board):
'-mthumb',
'--specs=nano.specs',
'--specs=nosys.specs',
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
'-D__USE_CMSIS',
'-Werror=deprecated-declarations',
'-DNDEBUG=1'

View File

@ -502,7 +502,7 @@ def configure(cfg):
# Always use system extensions
cfg.define('_GNU_SOURCE', 1)
cfg.write_config_header(os.path.join(cfg.variant, 'ap_config.h'))
cfg.write_config_header(os.path.join(cfg.variant, 'ap_config.h'), guard='_AP_CONFIG_H_')
# add in generated flags
cfg.env.CXXFLAGS += ['-include', 'ap_config.h']