target: rename cortex_m3 to cortex_m

Rename cortex_m3 target to use a more correct cortex_m name.
This also adds a deprecated_name var so that older scripts issue a warning
to update the target name.

cfg files have also been updated to the new target name.

Change-Id: Ia8429f38e88da677249c5caa560c50f8ce56ea10
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1129
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
Spencer Oliver
2013-02-01 15:34:51 +00:00
committed by Freddie Chopin
parent 564a5eb537
commit b7d2cdc0d4
25 changed files with 66 additions and 59 deletions

View File

@@ -2256,9 +2256,9 @@ static const struct command_registration cortex_m3_command_handlers[] = {
.chain = armv7m_command_handlers,
},
{
.name = "cortex_m3",
.name = "cortex_m",
.mode = COMMAND_EXEC,
.help = "Cortex-M3 command group",
.help = "Cortex-M command group",
.usage = "",
.chain = cortex_m3_exec_command_handlers,
},
@@ -2266,7 +2266,8 @@ static const struct command_registration cortex_m3_command_handlers[] = {
};
struct target_type cortexm3_target = {
.name = "cortex_m3",
.name = "cortex_m",
.deprecated_name = "cortex_m3",
.poll = cortex_m3_poll,
.arch_state = armv7m_arch_state,