contrib: Add example cross-build script 31/1531/10
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 13 Sep 2013 21:38:30 +0000 (23:38 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Sun, 15 Sep 2013 07:55:10 +0000 (07:55 +0000)
commitc98856b62a4fd5eca05d1d1f1185300fdee13f39
tree57bd9140efdfb6b6170ad8e6f0320a859cee4466
parentaccb8e94c341c0dba06ccf1e1ee97eaf81065e3c
contrib: Add example cross-build script

Usage:
export LIBUSB1_SRC=/path/to/libusb-1.0
export OPENOCD_CONFIG="--enable-..."
cd /work/dir
/path/to/openocd/contrib/cross-build.sh <host-triplet>

For static linking, a workaround is to
export LIBUSB1_CONFIG="--enable-static --disable-shared"

All the paths must not contain any spaces.

Feel free to comment or update this patchset with improvements.

Change-Id: Ib3b4970117f13a6140a1eddc493d324a52364519
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1531
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
contrib/cross-build.sh [new file with mode: 0755]