transport: make 'transport select' auto-select the first available transport if not set 51/2551/7
authorAngus Gratton <gus@projectgus.com>
Tue, 24 Feb 2015 21:19:15 +0000 (08:19 +1100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 25 Mar 2015 21:32:49 +0000 (21:32 +0000)
commitd90b86d8e35f4f681eb341ca534985eb1046cc59
tree17296b2511be7e3235f7d7dc4f073f1c6d624e98
parent492bab62abe6e94a302899ed19af7e1b23365e78
transport: make 'transport select' auto-select the first available transport if not set

This should allow most of the existing configurations for older
versions to remain compatible without forcing the user to change his
or her config to explicitly select transport.

Also in some circumstances can remove the need to chain a "-c transport
select X" when building custom configs on the command line, which seems
like a common new user pitfall.

Change-Id: Ic87a38c0b9b88e88fb6d106385efce2f39381d3d
Suggested-by: Petteri Aimonen <jpa@git.mail.kapsi.fi>
Signed-off-by: Angus Gratton <gus@projectgus.com>
Reviewed-on: http://openocd.zylin.com/2551
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
doc/openocd.texi
src/transport/transport.c
tcl/target/swj-dp.tcl