openocd/src
Andreas Fritiofson 6ddf26c83d Search for scripts relative to the executable on all(?) platforms
Add a helper to hide the platform-dependent method to get a
canonical, absolute, /-separated path to the executable.

Use this and the relative path from BINDIR to PKGDATADIR to
construct a search path that finds the scripts even if the
installation dir is moved, as long as the structure below $prefix
is maintained.

This method should fully support all the tricks you can to with
autotools to customize the installed layout such as overriding the
default directories at configure-time and overriding the configured
directories at build-time.

The exe path detection methods are combined from
http://openocd.zylin.com/3388 by Rick Foos and
http://openocd.zylin.com/3537 by Steven Stallion, as well as tips
found all over internet.

Change-Id: Ifc9cc9dd0bf52fbd67b1b0f2383318cda0c422c4
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Signed-off-by: Steven Stallion <sstallion@gmail.com>
Reviewed-on: http://openocd.zylin.com/3889
Tested-by: jenkins
Reviewed-by: Rick Foos <rfoos@solengtech.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2016-12-25 09:22:29 +00:00
..
flash Convert to non-recursive make 2016-12-08 16:23:10 +00:00
helper Search for scripts relative to the executable on all(?) platforms 2016-12-25 09:22:29 +00:00
jtag jtag: drivers: ulink: fix uninitialised variable warning 2016-12-25 09:17:30 +00:00
pld Convert to non-recursive make 2016-12-08 16:23:10 +00:00
rtos Convert to non-recursive make 2016-12-08 16:23:10 +00:00
server Convert to non-recursive make 2016-12-08 16:23:10 +00:00
svf Convert to non-recursive make 2016-12-08 16:23:10 +00:00
target Convert to non-recursive make 2016-12-08 16:23:10 +00:00
transport Convert to non-recursive make 2016-12-08 16:23:10 +00:00
xsvf Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
openocd.c Remove build date from banner for releases 2016-12-08 12:55:19 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00