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:
committed by
Freddie Chopin
parent
564a5eb537
commit
b7d2cdc0d4
@@ -94,7 +94,7 @@ struct ChibiOS_params {
|
||||
|
||||
struct ChibiOS_params ChibiOS_params_list[] = {
|
||||
{
|
||||
"cortex_m3", /* target_name */
|
||||
"cortex_m", /* target_name */
|
||||
0,
|
||||
NULL, /* stacking_info */
|
||||
},
|
||||
|
||||
@@ -50,7 +50,7 @@ struct FreeRTOS_params {
|
||||
|
||||
const struct FreeRTOS_params FreeRTOS_params_list[] = {
|
||||
{
|
||||
"cortex_m3", /* target_name */
|
||||
"cortex_m", /* target_name */
|
||||
4, /* thread_count_width; */
|
||||
4, /* pointer_width; */
|
||||
16, /* list_next_offset; */
|
||||
|
||||
@@ -73,7 +73,7 @@ struct ThreadX_params {
|
||||
|
||||
const struct ThreadX_params ThreadX_params_list[] = {
|
||||
{
|
||||
"cortex_m3", /* target_name */
|
||||
"cortex_m", /* target_name */
|
||||
4, /* pointer_width; */
|
||||
8, /* thread_stack_offset; */
|
||||
40, /* thread_name_offset; */
|
||||
|
||||
@@ -64,7 +64,7 @@ struct eCos_params {
|
||||
|
||||
const struct eCos_params eCos_params_list[] = {
|
||||
{
|
||||
"cortex_m3", /* target_name */
|
||||
"cortex_m", /* target_name */
|
||||
4, /* pointer_width; */
|
||||
0x0c, /* thread_stack_offset; */
|
||||
0x9c, /* thread_name_offset; */
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -167,3 +167,9 @@ proc init_targets {} {
|
||||
# Additionally board config scripts can define a procedure init_board that will be executed after init and init_targets
|
||||
proc init_board {} {
|
||||
}
|
||||
|
||||
# deprecated target name cmds
|
||||
proc cortex_m3 args {
|
||||
echo "DEPRECATED! use 'cortex_m' not 'cortex_m3'"
|
||||
eval cortex_m $args
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user