From 92bc9c66599fdb35659fef6c2409f328485bfadf Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 24 Mar 2016 10:02:23 +0100 Subject: [PATCH] port linux script to libusb 1.0.20 and dfu-util-0.9 --- compile_linux.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/compile_linux.sh b/compile_linux.sh index 40343df..2d3885a 100755 --- a/compile_linux.sh +++ b/compile_linux.sh @@ -16,13 +16,13 @@ # 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 @@ -30,13 +30,13 @@ 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 @@ -44,13 +44,13 @@ 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