|
|
@ -106,6 +106,11 @@ def options(opt): |
|
|
|
action='store_true', |
|
|
|
action='store_true', |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
|
help='enable malloc guard regions.') |
|
|
|
help='enable malloc guard regions.') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g.add_option('--enable-stats', |
|
|
|
|
|
|
|
action='store_true', |
|
|
|
|
|
|
|
default=False, |
|
|
|
|
|
|
|
help='enable OS level thread statistics.') |
|
|
|
|
|
|
|
|
|
|
|
g.add_option('--bootloader', |
|
|
|
g.add_option('--bootloader', |
|
|
|
action='store_true', |
|
|
|
action='store_true', |
|
|
@ -289,6 +294,7 @@ def configure(cfg): |
|
|
|
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts |
|
|
|
cfg.env.ENABLE_ASSERTS = cfg.options.enable_asserts |
|
|
|
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.OPTIONS = cfg.options.__dict__ |
|
|
|
cfg.env.OPTIONS = cfg.options.__dict__ |
|
|
|
|
|
|
|
|
|
|
|