Skip to content

Update to openocd 0.10.0 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Mar 23, 2020
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
be7d3b9
Add support for a lot of programmers
facchinm Jun 8, 2018
f162046
FIx mingw build
facchinm Jun 8, 2018
928cd2d
Fix unix build
facchinm Jun 8, 2018
cfbb189
TEST: update to latest openocd 0.10.0
facchinm Jun 8, 2018
0978fd0
Remove sysfs gpio from osx build
facchinm Jun 8, 2018
b8610fe
Update scripts
facchinm Jun 8, 2018
66bbcdd
Update libusb-compat to 0.1.6-rc2
facchinm Jun 8, 2018
81ecf65
Remove autoreconf
facchinm Jun 8, 2018
335e09c
Fix libusb-compat
facchinm Jun 8, 2018
640390d
add make_prerequisites script
facchinm Jun 8, 2018
9620df2
Call make_prereq before every action
facchinm Jun 8, 2018
ced4ad0
Fix previous commit
facchinm Jun 8, 2018
99836db
modify PATH
facchinm Jun 8, 2018
7033c79
Readd autoreconf on libusb-compat
facchinm Jun 8, 2018
2c5ccb0
Fix pkg-config url
facchinm Jun 8, 2018
f6f3b49
fix libusb-compat
facchinm Jun 8, 2018
bbc70c9
fix pkg-config
facchinm Jun 8, 2018
a93add6
fix
facchinm Jun 8, 2018
53693c5
try
facchinm Jun 8, 2018
5825d15
Add m4 stuff to libusb-compat
facchinm Jun 8, 2018
858ac8e
Add libftdi
facchinm Jun 11, 2018
5490d5f
Initial cross-compile effort
facchinm Jun 11, 2018
c61f060
Make compile_cross generic
facchinm Jun 11, 2018
fdf1278
Make compile_cross generic
facchinm Jun 11, 2018
04b2980
Fix libusb-compat
facchinm Jun 11, 2018
0b1f5ce
fix cmake
facchinm Jun 11, 2018
bf65fb8
Move libftdi folder
facchinm Jun 11, 2018
b2a85e4
TEST: fix mingw build
facchinm Jun 11, 2018
656fe2c
TEST: fix mingw build
facchinm Jun 11, 2018
af88504
TEST: fix mingw build
facchinm Jun 11, 2018
6517cc2
only add actual binary to tarball
facchinm Jun 11, 2018
57374fa
fix osxcross build
facchinm Jun 11, 2018
5e1deb9
Fix osxcross build
facchinm Jun 11, 2018
4f239f9
Update Openocd submodule
facchinm Jan 24, 2019
6c33340
update version to 0.10.0-arduino8
facchinm Jan 24, 2019
0a6accd
Update version to 0.10.0-arduino9
facchinm Feb 6, 2019
c56b095
Update to 0.10.0-arduino10
facchinm Mar 13, 2019
db48d57
Update openocd
facchinm Mar 28, 2019
efb17e1
Update openocd
facchinm Apr 12, 2019
f0a0dca
Update to 0.10.0-arduino11
facchinm Apr 12, 2019
7e0bedb
Update openocd
facchinm Apr 15, 2019
1434150
Update openocd submodule
facchinm Feb 14, 2020
16124d0
Update to 0.10.0-arduino12-static
facchinm Feb 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make compile_cross generic
  • Loading branch information
facchinm committed Jun 11, 2018
commit c61f060f8520e176236c18d76d562322e77c36ff
44 changes: 30 additions & 14 deletions compile_linuxarm_openocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
ARCH=`arm-linux-gnueabihf-gcc -v 2>&1 | awk '/Target/ { print $2 }'`

if [ x$CROSS_COMPILER == x ]; then
CROSS_COMPILER=${CROSS_COMPILE}-gcc
fi

ARCH=`$CROSS_COMPILER -v 2>&1 | awk '/Target/ { print $2 }'`

mkdir -p distrib/$ARCH
cd distrib/$ARCH
Expand All @@ -24,12 +29,16 @@ cd -
#disable pkg-config
export PKG_CONFIG_PATH=`pwd`

if [[ ${ARCH} != *darwin* ]]; then
if [[ ${ARCH} == *mingw* ]]; then
export CFLAGS="-mno-ms-bitfields"
fi

if [[ ${ARCH} == *linux* ]]; then

cd eudev-3.1.5
export UDEV_DIR=`pwd`
./autogen.sh
./configure --enable-static --disable-shared --disable-blkid --disable-kmod --disable-manpages --host=arm-linux-gnueabihf
./configure --enable-static --disable-shared --disable-blkid --disable-kmod --disable-manpages --host=${CROSS_COMPILE}
make clean
make -j4
cd ..
Expand All @@ -42,7 +51,7 @@ fi

cd libusb-1.0.20
export LIBUSB_DIR=`pwd`
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf
./configure --enable-static --disable-shared --host=${CROSS_COMPILE}
make clean
make
cd ..
Expand All @@ -57,7 +66,7 @@ cd libusb-compat-0.1.5
export LIBUSB0_DIR=`pwd`
automake --add-missing
autoreconf
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf
./configure --enable-static --disable-shared --host=${CROSS_COMPILE}
make clean
make
cd ..
Expand All @@ -70,7 +79,7 @@ export libudev_LIBS="-L$UDEV_DIR/src/libudev/.libs/ -ludev"
cd hidapi
./bootstrap
export HIDAPI_DIR=`pwd`
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf
./configure --enable-static --disable-shared --host=${CROSS_COMPILE}
make clean
make -j4
cd ..
Expand All @@ -81,7 +90,7 @@ if [ -d build ]; then
rm -rf build
fi
mkdir build && cd build
cmake -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DBUILD_TESTS=no -DDOCUMENTATION=no -DEXAMPLES=no -DFTDIPP=no -DFTDI_EEPROM=no -DLINK_PYTHON_LIBRARY=no -DPYTHON_BINDINGS=no -DCMAKE_INSTALL_PREFIX=$LIBFTDI1_DIR ..
cmake -DCMAKE_C_COMPILER=${CROSS_COMPILER} -DBUILD_TESTS=no -DDOCUMENTATION=no -DEXAMPLES=no -DFTDIPP=no -DFTDI_EEPROM=no -DLINK_PYTHON_LIBRARY=no -DPYTHON_BINDINGS=no -DCMAKE_INSTALL_PREFIX=$LIBFTDI1_DIR ..
cd ..
make clean
make ftdi1-static
Expand All @@ -97,23 +106,30 @@ export LIBFTDI_CFLAGS="-I$LIBFTDI1_DIR/src/"
export LIBFTDI_LIBS="-L$LIBFTDI1_DIR/src/ -lftdi1 -lpthread"
export HIDAPI_CFLAGS="-I$HIDAPI_DIR/hidapi/"

if [[ ${ARCH} != *darwin* ]]; then

export HIDAPI_LIBS="-L$HIDAPI_DIR/linux/.libs/ -L$HIDAPI_DIR/libusb/.libs/ -lhidapi-hidraw -lhidapi-libusb"

else
if [[ ${ARCH} == *linux* ]]; then
export HIDAPI_LIBS="-L$HIDAPI_DIR/linux/.libs/ -L$HIDAPI_DIR/libusb/.libs/ -lhidapi-hidraw -lhidapi-libusb"
fi

if [[ ${ARCH} == *darwin* ]]; then
export HIDAPI_LIBS="-L$HIDAPI_DIR/mac/.libs/ -L$HIDAPI_DIR/libusb/.libs/ -lhidapi"
fi

if [[ ${ARCH} == *mingw* ]]; then
export HIDAPI_LIBS="-L$HIDAPI_DIR/windows/.libs/ -L$HIDAPI_DIR/libusb/.libs/ -lhidapi"
fi

if [[ ${ARCH} == *mingw* ]]; then
OPENOCD_COMPILE_SWITCHES="--enable-remote-bitbang --enable-stlink --enable-usb-blaster-2 --enable-ti-icdi --enable-jlink --enable-usbprog --enable-cmsis-dap"
else
OPENOCD_COMPILE_SWITCHES="--enable-remote-bitbang --enable-stlink --enable-usb-blaster-2 --enable-ti-icdi --enable-jlink --enable-usbprog --enable-cmsis-dap --enable-jtag_vpi --enable-ioutil"
fi

if [[ ${ARCH} != *darwin* ]]; then
if [[ ${ARCH} == *linux* ]]; then
OPENOCD_COMPILE_SWITCHES="$OPENOCD_COMPILE_SWITCHES --enable-sysfsgpio"
fi

export CFLAGS="-DHAVE_LIBUSB_ERROR_NAME"
PKG_CONFIG_PATH=`pwd` ./configure $OPENOCD_COMPILE_SWITCHES --disable-werror --prefix=$PREFIX --host=arm-linux-gnueabihf
PKG_CONFIG_PATH=`pwd` ./configure $OPENOCD_COMPILE_SWITCHES --disable-werror --prefix=$PREFIX --host=${CROSS_COMPILE}
make clean
CFLAGS=-static make
make install