Skip to content

add compatibility with linux ARM architecture #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 26 additions & 0 deletions arch.linuxarm.build.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash -ex

export HIDAPI_LDFLAGS="-lhidapi-libusb"

./clean.bash
rm -rf objdir

./libusb.build.bash
USE_LOCAL_LIBUSB=yes ./hidapi.build.bash
./openocd.build.bash

if [[ -f objdir/bin/openocd ]] ;
then
strip --strip-all objdir/bin/openocd
mv objdir/bin/openocd objdir/bin/openocd.bin
cp launchers/openocd.linux objdir/bin/openocd
chmod +x objdir/bin/openocd
fi

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

rm -rf OpenOCD-0.9.0-dev-arduino
rm -f OpenOCD-0.9.0-dev-arduino-$ARCH.tar.bz2
mv objdir OpenOCD-0.9.0-dev-arduino
tar cfvj OpenOCD-0.9.0-dev-arduino-$ARCH.tar.bz2 OpenOCD-0.9.0-dev-arduino

5 changes: 5 additions & 0 deletions arch.run-build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ then
./arch.linux32.build.bash
exit 0
fi

if [[ $MACHINE == "armv7l" ]] ; then
./arch.linuxarm.build.bash
exit 0
fi
echo Linux Machine not supported: $MACHINE
exit 1
fi
Expand Down