Skip to content

Commit

Permalink
port linux script to libusb 1.0.20 and dfu-util-0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Mar 24, 2016
1 parent ef28beb commit 92bc9c6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions compile_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,41 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

mkdir -p distrib/linux64
cd libusb-1.0.9
cd libusb-1.0.20
export LIBUSB_DIR=`pwd`
./configure --enable-static --disable-shared
./configure --enable-static --disable-shared --disable-udev
make clean
make -j4
make
cd ..
cd dfu-util-0.8
cd dfu-util-0.9
USB_CFLAGS="-I$LIBUSB_DIR/libusb/" USB_LIBS="-L$LIBUSB_DIR/libusb/.libs/ -lusb-1.0 -lpthread" ./configure
make clean
CFLAGS=-static make
cp src/dfu-suffix src/dfu-prefix src/dfu-util ../distrib/linux64/
cd ..

mkdir -p distrib/linux32
cd libusb-1.0.9
cd libusb-1.0.20
export LIBUSB_DIR=`pwd`
CFLAGS=-m32 ./configure
CFLAGS=-m32 ./configure --enable-static --disable-shared --disable-udev
make clean
make -j4
make
cd ..
cd dfu-util-0.8
cd dfu-util-0.9
CFLAGS=-m32 USB_CFLAGS="-I$LIBUSB_DIR/libusb/" USB_LIBS="-L$LIBUSB_DIR/libusb/.libs/ -lusb-1.0 -lpthread" ./configure
make clean
CFLAGS=-static make
cp src/dfu-suffix src/dfu-prefix src/dfu-util ../distrib/linux32
cd ..

mkdir -p distrib/arm
cd libusb-1.0.9
cd libusb-1.0.20
export LIBUSB_DIR=`pwd`
./configure --enable-static --disable-shared --host=arm-linux-gnueabihf
./configure --enable-static --disable-shared --disable-udev --host=arm-linux-gnueabihf
make clean
make -j4
make
cd ..
cd dfu-util-0.8
cd dfu-util-0.9
USB_CFLAGS="-I$LIBUSB_DIR/libusb/" USB_LIBS="-L$LIBUSB_DIR/libusb/.libs/ -lusb-1.0 -lpthread" ./configure --host=arm-linux-gnueabihf
make clean
CFLAGS=-static make
Expand Down

0 comments on commit 92bc9c6

Please sign in to comment.