X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=cross-compile%2Flinux%2Fsigrok-cross-linux;h=c7ae22ef05e3ec8f0a2b92376f0a445bfd783237;hb=ddc7a83814b6f486d5fa1c43cc38e4b30112b96e;hp=ae9195970b51852544a262d38fbe48eaed6e446d;hpb=4ff67f5ac9c4afc078e7436a4edad19799232659;p=sigrok-util.git diff --git a/cross-compile/linux/sigrok-cross-linux b/cross-compile/linux/sigrok-cross-linux index ae91959..c7ae22e 100755 --- a/cross-compile/linux/sigrok-cross-linux +++ b/cross-compile/linux/sigrok-cross-linux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh ## ## This file is part of the sigrok-util project. ## @@ -36,9 +36,17 @@ BUILDDIR=./build # The path where the libsigrok Python bindings will be installed. PYPATH=$PREFIX/lib/python2.7/site-packages +# Edit this to control verbose build output. +# V="V=1 VERBOSE=1" + # Edit this to enable/disable/modify parallel compiles. PARALLEL="-j 2" +# Uncomment the following lines to build with clang and run scan-build. +# export CC=clang +# export CXX=clang++ +# SB="scan-build -k -v" + # You usually don't need to change anything below this line. # ----------------------------------------------------------------------------- @@ -62,8 +70,8 @@ cd libserialport mkdir build cd build ../configure $C -make $PARALLEL -make install +$SB make $PARALLEL $V +make install $V cd ../.. # libsigrok @@ -74,8 +82,9 @@ cd libsigrok mkdir build cd build PKG_CONFIG_PATH=$P ../configure $C -make $PARALLEL -PYTHONPATH=$PYPATH make install +$SB make $PARALLEL $V +PYTHONPATH=$PYPATH $SB make install $V +$SB make check $V cd ../.. # libsigrokdecode @@ -85,8 +94,9 @@ cd libsigrokdecode mkdir build cd build PKG_CONFIG_PATH=$P ../configure $C -make $PARALLEL -make install +$SB make $PARALLEL $V +make install $V +$SB make check $V cd ../.. # sigrok-firmware @@ -97,7 +107,7 @@ mkdir build cd build # Nothing gets cross-compiled here, we just need 'make install' basically. ../configure $C -make install +make install $V cd ../.. # sigrok-firmware-fx2lafw @@ -108,8 +118,8 @@ mkdir build cd build # We're building the fx2lafw firmware on the host, no need to cross-compile. ../configure $C -make $PARALLEL -make install +make $PARALLEL $V +make install $V cd ../.. # sigrok-cli @@ -119,8 +129,8 @@ cd sigrok-cli mkdir build cd build PKG_CONFIG_PATH=$P ../configure $C -make $PARALLEL -make install +$SB make $PARALLEL $V +make install $V cd ../.. # PulseView @@ -128,8 +138,8 @@ $GIT_CLONE git://sigrok.org/pulseview cd pulseview mkdir build cd build -PKG_CONFIG_PATH=$P cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_DECODE=y .. -make $PARALLEL -make install +PKG_CONFIG_PATH=$P $SB cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y .. +$SB make $PARALLEL $V +make install $V +$SB make test $V cd ../.. -