]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-android: Include firmwares in the build
authorMarcus Comstedt <redacted>
Wed, 30 Sep 2015 18:31:45 +0000 (20:31 +0200)
committerMarcus Comstedt <redacted>
Wed, 30 Sep 2015 18:31:45 +0000 (20:31 +0200)
cross-compile/android/sigrok-cross-android

index b5b4e4234a771fff97daed543f58e84331096421..e50c93b4c42d937873f961ce69247e4692317bd5 100755 (executable)
@@ -78,6 +78,7 @@ VER_LIBUSB=1.0.19
 VER_PYTHON=3.3.3
 VER_BOOST=1.58.0
 VER_QT=5.4.1
+VER_SIGROK_FIRMWARE_FX2LAFW=0.1.2
 VER_NDK=10e
 VER_SDK=24.3.3
 VER_AND_BT=22.0.1 # Android build tools version
@@ -384,6 +385,24 @@ make $PARALLEL $V
 make install $V
 cd ../..
 
+# sigrok-firmware
+$GIT_CLONE git://sigrok.org/sigrok-firmware
+cd sigrok-firmware
+./autogen.sh
+mkdir build
+cd build
+../configure $C
+make $PARALLEL $V
+make install $V
+cd ../..
+
+# sigrok-firmware-fx2lafw
+$WGET http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-bin-$VER_SIGROK_FIRMWARE_FX2LAFW.tar.gz
+tar xfz sigrok-firmware-fx2lafw-bin-$VER_SIGROK_FIRMWARE_FX2LAFW.tar.gz
+cd sigrok-firmware-fx2lafw-bin-$VER_SIGROK_FIRMWARE_FX2LAFW
+cp *.fw $PREFIX/share/sigrok-firmware/
+cd ..
+
 # sigrok-cli
 $GIT_CLONE git://sigrok.org/sigrok-cli
 cd sigrok-cli