|
|
@ -155,6 +155,11 @@ def options(opt): |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
|
help='enable OS level asserts.') |
|
|
|
help='enable OS level asserts.') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g.add_option('--save-temps', |
|
|
|
|
|
|
|
action='store_true', |
|
|
|
|
|
|
|
default=False, |
|
|
|
|
|
|
|
help='save compiler temporary files.') |
|
|
|
|
|
|
|
|
|
|
|
g.add_option('--enable-malloc-guard', |
|
|
|
g.add_option('--enable-malloc-guard', |
|
|
|
action='store_true', |
|
|
|
action='store_true', |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
@ -387,6 +392,7 @@ def configure(cfg): |
|
|
|
cfg.env.BOOTLOADER = cfg.options.bootloader |
|
|
|
cfg.env.BOOTLOADER = cfg.options.bootloader |
|
|
|
cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard |
|
|
|
cfg.env.ENABLE_MALLOC_GUARD = cfg.options.enable_malloc_guard |
|
|
|
cfg.env.ENABLE_STATS = cfg.options.enable_stats |
|
|
|
cfg.env.ENABLE_STATS = cfg.options.enable_stats |
|
|
|
|
|
|
|
cfg.env.SAVE_TEMPS = cfg.options.save_temps |
|
|
|
|
|
|
|
|
|
|
|
cfg.env.HWDEF_EXTRA = cfg.options.extra_hwdef |
|
|
|
cfg.env.HWDEF_EXTRA = cfg.options.extra_hwdef |
|
|
|
if cfg.env.HWDEF_EXTRA: |
|
|
|
if cfg.env.HWDEF_EXTRA: |
|
|
|