ACTIONS = {
# action name : ( function (or alias), dependencies, order-only dependencies )
- "all" : ( build_target, [], [ "reconfigure", "menuconfig", "clean", "fullclean" ] ),
- "build": ( "all", [], [] ), # build is same as 'all' target
- "clean": ( clean, [], [ "fullclean" ] ),
- "fullclean": ( fullclean, [], [] ),
- "reconfigure": ( reconfigure, [], [ "menuconfig" ] ),
- "menuconfig": ( build_target, [], [] ),
+ "all" : ( build_target, [], [ "reconfigure", "menuconfig", "clean", "fullclean" ] ),
+ "build": ( "all", [], [] ), # build is same as 'all' target
+ "clean": ( clean, [], [ "fullclean" ] ),
+ "fullclean": ( fullclean, [], [] ),
+ "reconfigure": ( reconfigure, [], [ "menuconfig" ] ),
+ "menuconfig": ( build_target, [], [] ),
"defconfig": ( build_target, [], [] ),
- "confserver": ( build_target, [], [] ),
- "size": ( build_target, [ "app" ], [] ),
- "size-components": ( build_target, [ "app" ], [] ),
- "size-files": ( build_target, [ "app" ], [] ),
- "bootloader": ( build_target, [], [] ),
- "bootloader-clean": ( build_target, [], [] ),
- "bootloader-flash": ( flash, [ "bootloader" ], [ "erase_flash"] ),
- "app": ( build_target, [], [ "clean", "fullclean", "reconfigure" ] ),
- "app-flash": ( flash, [ "app" ], [ "erase_flash"]),
- "partition_table": ( build_target, [], [ "reconfigure" ] ),
- "partition_table-flash": ( flash, [ "partition_table" ], [ "erase_flash" ]),
- "flash": ( flash, [ "all" ], [ "erase_flash" ] ),
- "erase_flash": ( erase_flash, [], []),
- "monitor": ( monitor, [], [ "flash", "partition_table-flash", "bootloader-flash", "app-flash" ]),
+ "confserver": ( build_target, [], [] ),
+ "size": ( build_target, [ "app" ], [] ),
+ "size-components": ( build_target, [ "app" ], [] ),
+ "size-files": ( build_target, [ "app" ], [] ),
+ "bootloader": ( build_target, [], [] ),
+ "bootloader-clean": ( build_target, [], [] ),
+ "bootloader-flash": ( flash, [ "bootloader" ], [ "erase_flash"] ),
+ "app": ( build_target, [], [ "clean", "fullclean", "reconfigure" ] ),
+ "app-flash": ( flash, [ "app" ], [ "erase_flash"]),
+ "partition_table": ( build_target, [], [ "reconfigure" ] ),
+ "partition_table-flash": ( flash, [ "partition_table" ], [ "erase_flash" ]),
+ "flash": ( flash, [ "all" ], [ "erase_flash" ] ),
+ "erase_flash": ( erase_flash, [], []),
+ "monitor": ( monitor, [], [ "flash", "partition_table-flash", "bootloader-flash", "app-flash" ]),
+ "erase_otadata": ( build_target, [], []),
+ "read_otadata": ( build_target, [], []),
}
def get_commandline_options():