diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2012-10-24 09:52:00 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-12-23 21:45:42 +0000 |
commit | 6c467da586a42c8b1332670f2d5f27ae360a153f (patch) | |
tree | 1adbe7ae86ad40772afef467ae686e49d7ae527b /src/target | |
parent | 549d9bc72cbca3ba352e6b4bcd6e31d9fd9a0bc7 (diff) |
stlink: rename stlink cmd names
As part of the switch to using the hla for the stlink interface we rename
the cmds to a more generic name.
Update scripts to match new names.
Also add handlers for deprecated names.
Change-Id: I6f00743da746e3aa13ce06acfdc93c8049545e07
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/921
Tested-by: jenkins
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/hla_target.c | 5 | ||||
-rw-r--r-- | src/target/target.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/target/hla_target.c b/src/target/hla_target.c index 1791997a..272c25e0 100644 --- a/src/target/hla_target.c +++ b/src/target/hla_target.c @@ -771,8 +771,9 @@ static const struct command_registration adapter_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -struct target_type stm32_stlink_target = { - .name = "stm32_stlink", +struct target_type hla_target = { + .name = "hla_target", + .deprecated_name = "stm32_stlink", .init_target = adapter_init_target, .target_create = adapter_target_create, diff --git a/src/target/target.c b/src/target/target.c index 026880c6..41fab1e6 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -87,7 +87,7 @@ extern struct target_type dsp563xx_target; extern struct target_type dsp5680xx_target; extern struct target_type testee_target; extern struct target_type avr32_ap7k_target; -extern struct target_type stm32_stlink_target; +extern struct target_type hla_target; static struct target_type *target_types[] = { &arm7tdmi_target, @@ -110,7 +110,7 @@ static struct target_type *target_types[] = { &dsp5680xx_target, &testee_target, &avr32_ap7k_target, - &stm32_stlink_target, + &hla_target, NULL, }; |