]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-mingw: Also ship zadig.exe and zadig_xp.exe.
authorUwe Hermann <redacted>
Sun, 5 Jan 2014 09:51:06 +0000 (10:51 +0100)
committerUwe Hermann <redacted>
Sun, 5 Jan 2014 09:51:06 +0000 (10:51 +0100)
This is a helper tool for installing libusb-win32 or WinUSB drivers on
Windows, which is a requirement for USB devices to be recognized by
libsigrok (libusb actually) on Windows.

cross-compile/mingw/README
cross-compile/mingw/sigrok-cross-mingw

index 00758a503cf76604d5e4114e0e406d372ce8ffd7..b10c0f06b57a022c0bc0c3cd9bdfdee2e2d4cade 100644 (file)
@@ -22,6 +22,7 @@ Requirements
  - git
  - wget
  - unzip
+ - p7zip
  - pkg-config (>= 0.22)
  - sdcc (needed for building the fx2lafw firmware)
  - nsis
index f553208d7ec118e6eddf96194f7a83531e942ff3..be20756e1e164a2f7b16c8d41db8104075fdffd9 100755 (executable)
@@ -38,6 +38,7 @@ PARALLEL="-j 2"
 # -----------------------------------------------------------------------------
 
 VER_LIBUSB_WIN32=1.2.6.0
+VER_ZADIG=v2.0.1.160
 
 SF_MIRROR=switch.dl.sourceforge.net
 
@@ -92,6 +93,13 @@ wget -c http://$SF_MIRROR/project/libusb-win32/libusb-win32-releases/$VER_LIBUSB
 unzip libusb-win32-bin-$VER_LIBUSB_WIN32.zip
 cp -f libusb-win32-bin-$VER_LIBUSB_WIN32/bin/x86/libusb0_x86.dll $PREFIX/libusb0.dll
 
+# Zadig (we ship this with frontends for easy driver switching).
+wget -c http://$SF_MIRROR/project/libwdi/zadig/zadig_$VER_ZADIG.7z
+wget -c http://$SF_MIRROR/project/libwdi/zadig/zadig_xp_$VER_ZADIG.7z
+7zr e zadig_$VER_ZADIG.7z
+7zr e zadig_xp_$VER_ZADIG.7z
+cp -f zadig.exe zadig_xp.exe $PREFIX
+
 # libserialport
 git clone git://sigrok.org/libserialport
 cd libserialport
@@ -154,7 +162,6 @@ cd ..
 git clone git://sigrok.org/pulseview
 cd pulseview
 patch -p1 < ../../pulseview_linkfix.patch
-
 PKG_CONFIG_PATH_i686_pc_mingw32=$P:$P2 cmake $CM -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_DECODE=y -DENABLE_COTIRE=y .
 make $PARALLEL VERBOSE=1
 make install